node.js - Zeromq REQ-REP pattern sync on nodejs -



node.js - Zeromq REQ-REP pattern sync on nodejs -

i have 1 application ( written in nodejs, a ) should connect via zmq, application ( written in java akka framework, b ).

b application replicated on multiple servers, , application a should create selection querying every b instance ( should inquire load application average ).

i implement mechanism through req/rep pattern, slam on :

zmq in nodejs a offers req/rep pattern event handling, without blocking strategies defined in zmq architecture.

i have investigated other approaches ( switching axon, introducing socket on b application , making socket connection ), seek implement zeromq.

any suggestions?

you cannot you're looking req/rep, because pattern strictly only handles request/reply/request/reply messaging pattern, , want more requestb1/requestb2/replyb1/requestb3/replyb2/replyb3 (point being, requests , replies asynchronous rather in strict series).

without digging deeply, looks might fit dealer/rep socket pattern. dealer socket (in a) request info each of b servers in round-robin fashion, , able handle replies servers come in, in order (you'll have create part of message indicate server reply received from).

node.js zeromq

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -