I have 1000 tcp connections from outside world (users).

I wish to use zeromq as a gateway to reduce for about 10 connect to my
kernel.

So,  1000 connections -> 100 connections *10 nodes -> 1 kernel.

Q1: Could anyone suggest me the way to use zeromq as my infrastructure?

To make sure user will receive feed back only when message processed by
kernel.  I use PUB/SUB in all the path from node to kernel.

Every node:
     100 thread, every thread connect to one outside tcp(of cause, it is not
zeromq based client).
               user -> tcp -> inproc:PUB:send_to_kernel_thread
               ->inproc:SUB:send_to_specific_user_thread
               -> tcp -> user
      1 thread to connect to my kernel:
               inproc:SUB:send_to_kernel_thread
               -> tcp:PUB:to_kernel
               -> tcp:SUB:to_specific_node
               -> inproc:PUB:send_to_specific_user_thread
kernel:
      tcp:SUB:to_kernel -> work -> tcp:PUB:to_specific_node

Q2: Will all PUB/SUB promise won't lost, and delivery in the original order?
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to