web services - Response from Web Server is dependent on ZeroMQ (0MQ) RES -


in lightweight soas i've seen many designs have web server receives client requests , send responses dependent upon responses other services. i've seen done incorrectly resulting in unacceptable latency issues.

for example:

assume:

  • we have 1 web api server , 1 service api.
  • web server performs basic user auth , other user functionality.
  • service performs database operations.
  • zeromq (zmq, 0mq, etc) req/res user service messaging

work flow:

  1. client makes request web api server api.
  2. web server performs database operations (auth etc).
  3. web server makes request service api.
  4. service performs database operations.
  5. service responds data web server.
  6. web server receives response , sends response client.

this pattern different typical offline message queue processing work flow. includes request single service (a)

while trying maintain separate system services correct usage pattern zeromq?

i'm trying figure out if zeromq can used make service requests , send results client web service requests without significant performance issues.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -