Well, I'm here, but it seems as though you haven't read the zeromq manual. The manual is very very descriptive and thorough; I'm not sure enough about the specifics of your project to understand it well enough to say, but I would think that what you have is close; you have to think about the relationship status between communicating *groups* in order to know what modes. I don't think that your diagram accurately captures your use case. You say you have (possilby) many tcp servers, I don't think that those are all dealer objects, unless your passing requests through a single tcp server conduit or something. So I think that if you just read the manual there's already an example that covers your case in regards to M-1-N relationship in processing...
On Sun, Mar 16, 2014 at 7:13 AM, Wesley <[email protected]> wrote: > Anybody in this google group? > > 在 2014年3月12日星期三UTC+8下午11时03分27秒,Wesley写道: >> >> Hi guys, >> Here I wanna consult one zeromq mode design. >> I have one GW(HTTP server) and 2 or more TCP servers, GW accepts http >> requests and forwards taks to tcp servers via message queue. >> Then, tcp servers accept tasks and execute the task. >> >> The point here is, tcp server keep long connections with other devices, >> say, maybe cell phones. >> >> So, when GW forwards task(it can read http request and determine which >> cell the current request is to), it should determine which tcp server to >> send(assume, I have a redis storing which tcp server every cell is >> connecting to). >> >> So, what modes I should use? >> We require that, if one tcp server is not available, the message sent to >> it shouldn't be lost. >> Here is my design, correct? >> >> >> <https://lh6.googleusercontent.com/-SHqT1bXFDUc/UyB3McSEgdI/AAAAAAAAAE0/aWCHVX-xYCE/s1600/%E7%BB%98%E5%9B%BE1.png> >> >> >> > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
