I'm wondering if you could use an XPUB and XSUB socket. You know when to start sending when you receive a subscription.
Joshua On Dec 28, 2011, at 5:42 PM, Yi Ding wrote: > Hi everyone, > > I've been trying to build this program where I have multiple publishers > (where each publisher represents a distinct data source). To avoid the slow > joiner problem, it looks like the preferred mechanism (correct me if I'm > wrong) is to use a REQ-REP socket to send a synchronization packet from the > client to the server at which time the server knows it's "safe" to start > sending out data to the client. > > So my question is, what's the preferred way to synchronize/prevent slow > joiner when I'm listening to multiple publishers? I've considered connecting > a single REQ socket to multiple REP sockets, using one REQ socket per > publisher, using PUSH/PULL or DEALER/ROUTER sockets. > > Thanks, > Yi > _______________________________________________ > 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
