[zeromq-dev] Request Response with data partitioning

Pieter Hintjens ph at imatix.com
Thu Jun 26 16:14:04 CEST 2014


It's usually fine to take something existing like MDP and modify it
for your needs.

On Thu, Jun 26, 2014 at 12:40 PM, Doron Somech <somdoron at gmail.com> wrote:
> I'm designing a new trading platform project using NetMQ.
>
>
> The execution server (the one that process the trades) will have multiple
> workers and each will be responsible for range of accounts (account needs
> exclusivity). Currently there is no need for multiple execution servers
> (maybe in the future).
>
> My question is how to load balance the requests to the right worker? the
> majordomo pattern is very close but each worker register for service and
> here I need each worker to register for accounts.
>
>
> What I have in mind is to allocate 10,000 (0-10000) keys and each worker
> will be responsible for specific range within the 10,000 keys. Account will
> have a random key in the range, multiple accounts can have the same key (it
> is not the account id). Each request coming will have the key and load
> balancer will route the request to the right worker.
>
>
> In the future if another execution server will be needed each will be
> responsible for different range and inside the server each worker will be
> responsible for different range.
>
> I didn't find a pattern in the guide for this, Am I inventing the will? Am I
> missing something? Any other recommendations?
>
>
> Thanks,
>
> Doron
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list