R
R
Runcorn2015-08-02 02:59:14
Python
Runcorn, 2015-08-02 02:59:14

How to implement a job queue server over HTTP?

How can a job queue server be implemented with the following characteristics:
1. HTTP is used as the transport.
2. The number of workers is not constant.
3. Workers keep a direct connection to the server using WebSocket and receive notifications about new available tasks.
4. The server gives the task to the first worker who makes a request to receive it.
To implement such a queue server, is it best to make a Web application using some kind of framework, or can you use ready-made queue servers (RabbitMQ, ZeroMQ, ...)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Abramov, 2015-08-02
@kivsiak

RabbitMQ + https://www.rabbitmq.com/web-stomp.html
And don't hit the bike.

D
Dimonchik, 2015-08-02
@dimonchik2013

if the task is still real, it comes down to finding the answer "which of the third-party queue servers works fine with WebSocket": make a list, study, try

C
cthulhudx, 2015-08-02
@cthulhudx

RabbitMQ or Quartz Scheduler

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question