[zeromq-dev] Zeromq with Docker Swarm
Marcin Romaszewicz
marcin at brkt.com
Mon Jun 19 19:13:16 CEST 2017
Any load balancer is going to pick between your servers at random, as far
as you're concerned. The way this is typically handled is that your server
instances use some kind of shared state, like a shared database,
filesystem, quorum, or any other form of shared state so that it doesn't
matter which server the message gets routed to. These are called
"stateless" services, if you want to search for some reading material.
Alternately, you use persistent network connections, because most load
balancers will maintain a TCP connection, but they're also pretty ruthless
at closing idle connections, so this is more error prone.
On Sat, Jun 17, 2017 at 2:39 PM, <picflo_2 at web.de> wrote:
> Hi all,
>
> I have been using Zeromq for quite some time for all message related
> tasks, but combining it with Docker Swarm built-in load balancing causes
> me some issues.
> I cant quite wrap my head around how to write persistend network protocols
> when the Docker Swarm load-balancer on top can reroute my message to
> any of the scaled receiver instances. Has someone here experiences with
> this setup?
>
> Thanks a lot,
> Florian
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20170619/9d8169e9/attachment.htm>
More information about the zeromq-dev
mailing list