[zeromq-dev] Req/Rep pattern with HA requester
Martin Sustrik
sustrik at 250bpm.com
Fri Jun 4 23:08:48 CEST 2010
Hi,
Can you explain the scenario in more detail. You say that S1, S2, S3 are
servers, but C1, C2 are servers as well. Where are the clients? How
should the messages pass through the infrastructure? Etc.
Martin
On 4/6/2010, "鍾明勳(Zhong, Ming-Xun)" <zhongmx at gmail.com> wrote:
>2010/6/5 Áé©ú¾±(Zhong, Ming-Xun) <zhongmx at gmail.com>
>
>>
>> Hi all,
>>
>> I have an question about Req/Rep model with HA
>>
>>
>> In my current implementation, C will send many async request to different
>> Server (S1, S2, S3) by different XREQ socket,
>> * Use different socket because I intend to send that server, rather than
>> load balance.
>> * Use XREQ to avoid REQ blocking behavior.
>> * A msg_id embedded in my message format
>>
>>
>> S1
>> S2 ------------------------ C
>> S3
>>
>>
>> Now I want let C be HA, C itself is actually a server, thus has some
>> persistence state store in shared storage
>>
>> S1 |---- C1----
>> S2 --- ??? ---+ |---- Shared Storage
>> S3 |---- C2----|
>>
>> The reply from S1,S2,S3 could be process by C1 or C2.
>>
>>
>> Here is my question, how do I:
>> 1. C could send request message to assigned S
>> 2. S reply to any of C
>> 3. C does not block on send/recv
>>
>> --
>> Zhong, Ming-Xun¡]Áé©ú¾±¡^
>> http://www.CDPA.nsysu.edu.tw/~zmx/
>> http://frogbsd.wordpress.com
>>
>
>To clarify my question, I use linux-ha.org so C1/C2 will have same IP
>address.
>If there is solution to not share same IP address, that would even better.
>
>--
>Zhong, Ming-Xun¡]Áé©ú¾±¡^
>http://www.CDPA.nsysu.edu.tw/~zmx/
>http://frogbsd.wordpress.com
More information about the zeromq-dev
mailing list