I have a fairly what I think is simple question but am completely unfamiliar with design considerations when using docker containers. So I have been trying to come up with a structure for an app that should have 1 UI (Im thinking MVC at this point), but multiple worker services.

My Question: If I have 1 UI app, and lets say 4 worker services each in their own docker container, each using SignalR. How do I go about structuring/determining the URL to call my SignalR hubs for each container?

Essentially I would like to be able to scale the worker service portion from 4, 5, 6, etc. We have these boxes that we need to communicate to which I will call "Controllers", and I would like to have 1 worker service per "Controller" and add / remove docker containers to match the number of "Controllers" we have running in the shop. How does one organize / determine the url structures so it is consistent whether I remove or add containers?

End goal is to send data from my UI with SignalR to the individual containers which then transfers that data/commands to the controllers live.

Picture To Kind of Explain:

enter image description here

Any advice / direction would be greatly appreciated as I am pretty new to docker containers and SignalR. Not sure if I am even approaching this problem correctly.

Thank you!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.