Hi,

thanks that response.
I thought about this stateless approach, but dont I lose many advantages from 
stateful connections?
In Mr. Hintjens book much is said about how to write stateful protocols, to 
ensure certain qualities
like alive counter service and so on.

So whats the best solution if so to combine those two worlds, docker swarm and 
zeromq?

Thanks again
 
 

Gesendet: Dienstag, 20. Juni 2017 um 12:00 Uhr
Von: [email protected]
An: [email protected]
Betreff: zeromq-dev Digest, Vol 15, Issue 10
Send zeromq-dev mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.zeromq.org/mailman/listinfo/zeromq-dev
or, via email, send a message with subject or body 'help' to
[email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of zeromq-dev digest..."


Today's Topics:

1. Re: Zeromq with Docker Swarm (Marcin Romaszewicz)


----------------------------------------------------------------------

Message: 1
Date: Mon, 19 Jun 2017 10:13:16 -0700
From: Marcin Romaszewicz <[email protected]>
To: ZeroMQ development list <[email protected]>
Subject: Re: [zeromq-dev] Zeromq with Docker Swarm
Message-ID:
<cackfmaurok5bhh1ta6agnnptlgx9h-dx0fn2dbiutnoo4ta...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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, <[email protected]> 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
> [email protected]
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev[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-0001.html[https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20170619/9d8169e9/attachment-0001.html]>

------------------------------

Subject: Digest Footer

_______________________________________________
zeromq-dev mailing list
[email protected]
https://lists.zeromq.org/mailman/listinfo/zeromq-dev[https://lists.zeromq.org/mailman/listinfo/zeromq-dev]


------------------------------

End of zeromq-dev Digest, Vol 15, Issue 10
******************************************
_______________________________________________
zeromq-dev mailing list
[email protected]
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to