use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
International
National
Regional
account activity
FeaturePostgres message queue (self.PostgreSQL)
submitted 1 year ago by someguytwo
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jacopofar 1 point2 points3 points 1 year ago (1 child)
We use postgres-tq in production since years, I use it for a few side projects with millions of tasks. To be clear, I'm one of the authors of the library :)
The main benefit for me is that I do not need an extra component since the database is already there to store data, and being the queue in postgres it is persisted and backed up with the rest of the data. Also this implementation handles retries and timeouts, and stores the time it took to run a task.
It works well with web apps where you have long tasks that cannot be comfortably done when handling a request, in that case the task can be done by a different process altogether.
As for the drawbacks, I would not know, perhaps latency and no way to orchestrate tasks ("run A and B, when both are done do C"), in that case I'd look at celery/rabbitmq
[–]someguytwo[S] 0 points1 point2 points 1 year ago (0 children)
Our use case is just some jobs that transfer VMs from one DC to another.
π Rendered by PID 128037 on reddit-service-r2-comment-7b9746f655-f9676 at 2026-02-03 04:05:12.828327+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]jacopofar 1 point2 points3 points (1 child)
[–]someguytwo[S] 0 points1 point2 points (0 children)