3 ms·
at this point why not use something like rabbitmq and not reinvent it in postgres.
by disiplus 7y ago
at this point why not use something like rabbitmq and not reinvent it in postgres.
- rapind 7y agoBecause then you're running and maintaining another service. Might make sense, but depends.
- stickfigure 7y agoBecause it's trivially easy. The dequeue operation updates the last_lease time; the query makes sure you don't dequeue something that was recently leased. It's far, far easier than setting up a separate job queue, especially if you are already using an RDBMS.