0

I have my own web application which uses third party API's through which thousand of HTTP request being sent daily.

I want to know if i send HTTP request through ZeroMQ. Will ZeroMQ able to prioritise the HTTP request in queue and is this a good way to send HTTP request through ZeroMQ?

Ravi

Ravirpandey - CS
  • 157
  • 1
  • 3
  • 9

1 Answers1

1

Here the answer from manual.

The answer used to be "this is not how it works". ØMQ is not a neutral carrier: it imposes a framing on the transport protocols it uses. This framing is not compatible with existing protocols, which tend to use their own framing.

And next one (optimistic) in same chapter:

Since v3.3, however, ØMQ has a socket option called ZMQ_ROUTER_RAW that lets you read and write data without the ØMQ framing. You could use this to read and write proper HTTP requests and responses.

Sergei Nikulov
  • 5,029
  • 23
  • 36
  • Thanks for the info but is it feasible to use ZeroMQ for handling HTTP requests? Does ZeroMQ keep the requests in queue and priorities it? – Ravirpandey - CS Jan 10 '14 at 06:01
  • It depends on architecture of your solution. In general answer is yes - see maillist http://lists.zeromq.org/pipermail/zeromq-dev/2013-June/021682.html and this http://stackoverflow.com/questions/10745084/rabbitmq-and-message-priority – Sergei Nikulov Jan 10 '14 at 06:12