[zeromq-dev] Quick question on usage of patterns

Andrew Hume andrew at research.att.com
Thu Jul 12 20:51:14 CEST 2012


unless you're not telling us something,
the simplest solution is two sockets:
app1.PUSH => app2.PULL: for M1
app2.PUSH => app1.PULL: for various ACKs

as for the matching, i would include an job id with M1 and the ACKs.
or if you don't want to do that, use the system name (Box2) as the id.
both these solutions generalise in different directions.

	andrew

On Jul 12, 2012, at 11:23 AM, Diffuser78 wrote:

> Hello All,
> 
> I need some suggestion on my design and ways in which it can be done using ZMQ sockets.
> 
> 
> I have an app  App1 on Box1. It sends a message M1 (128K) to an app App2 on Box2. App2 will do some processing on M1 before sending an ACK back. In my application, I also want to send an ACK back to App1 as soon as App2 receives M1, i.e. I want App2 to send two types of ACKs to App1:
> 1. An ACK that says that App2 received M1
> 2. An ACK after M1 is processed.
> 
> Can I make App1 use Dealer socket and App2 Router ? How will the matching happen on App1's end ? If this pattern is not right, could you please point out the right pattern to use for this use case.
> 
> 
> I greatly appreciate your replies.
> 
> Many thanks.
> 
>  
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev


------------------
Andrew Hume  (best -> Telework) +1 623-551-2845
andrew at research.att.com  (Work) +1 973-236-2014
AT&T Labs - Research; member of USENIX and LOPSA




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120712/72c7895c/attachment.htm>


More information about the zeromq-dev mailing list