4 ms·
On a related matter, how does job queue differ from message queue? What can a job queue do that Kafka or RabbitMQ cannot do?
by continuations 9y ago
On a related matter, how does job queue differ from message queue?
What can a job queue do that Kafka or RabbitMQ cannot do?
- manigandham 9y agoThere is no difference. A "job" is just a message to a worker process describing what to do and maybe some data or arguments to be used in doing that work. There are some useful features like priorities, scheduling in the future, claiming and then acknowledging a job as done or returning to pool, etc... but these can all be found in or coded on top of existing systems.
- mperham 9y agoBackground jobs are specialized messages. You can build a decent job system on top of a message queue but you'll lose the specifics. For instance, Rabbit and Kafka won't give you the built in retry system with error tracking and UI. Faktory enforces a specialized message format (the job payload) and can do many things with that data; message queues that treat messages as a simple byte array can't do that. https://github.com/contribsys/faktory/wiki/The-Job-Payload https://github.com/contribsys/faktory/wiki/The-Job-Payload