Is it possible to use a different message broker with celery?
For example: I would like to use PostgreSQL instead of RabbitMQ.
AFAIK it is only supported in the result backend: http://docs.celeryproject.org/en/latest/userguide/configuration.html#database-backend-settings
Since PostgreSQL 9.5 there is SKIP LOCKED
which enables implementing robust message/work queues. See https://blog.2ndquadrant.com/what-is-select-skip-locked-for-in-postgresql-9-5/
Best Answer
Yes, you can use postgres as broker instead of rabbitmq. Here is a simple example to demonstrate it.
Queuing tasks
Worker results:
Tested on latest(celery==4.1.0, kombu==4.1.0, SQLAlchemy==1.1.1) versions.