News for hackers. Stuff that matters.
Re:Do you really need Redis? How to get away with just Postg... by dragonwriter on Saturday June 12, 2021 @10:08AM (#27484615)
> You need a table with a primary id and a "status" field.

For a queue, you need a table with an insertion order and a status indicator. “Primary id” is not enough because “primary id” may not be ordered (e.g., a UUID primary key is a primary id.)

OTOH, while a DB can do this, therr are plenty of well-tested open source purpose built message queueing solutions, so the swt of scenarios where “roll your own with a DB” isn’t a misuse of effort is limited.

Re:Do you really need Redis? How to get away with just Postg... by lolinder on Saturday June 12, 2021 @11:27AM (#27485120)
Why on earth would you make a queue table with a non-serial primary key? What benefit do you gain from a UUID here?