Answer the question
In order to leave comments, you need to log in
How to create queue in db (postgres)?
It is necessary to store the tasks for sending messages in the database. How to implement an efficient asynchronous queue so that processes that send messages cannot send the same message at the same time.
UPD: persistence is needed so that in the event of a storage crash, tasks are not lost.
UPD: I don't really need a queue, but rather just a storage for jobs
UPD: you can say that I need sidekiq ( sidekiq.org/), but its disadvantage is that if redis crashes, then all jobs will be lost
Answer the question
In order to leave comments, you need to log in
Use ready-made solutions, it will be much more efficient.
google towards RabbitMQ, ActiveMQ, ZeroMq etc
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question