Comment by SahAssar

5 years ago

Basically all of those reasons are solved by using LISTEN/NOTIFY and FOR UPDATE SKIP LOCKED, which every queue built on pg will use.

>all of those reasons are solved

How does it solve the additional code complexity problem?

  • Which complexity? Of running a SQL query on the same database you're already using, vs writing code to support some other new system?

    • >Of running a SQL query on the same database you're already using

      Go back and read OPs link. They create new SQL types, tables, triggers, and functions, with non-trivial and very unforgiving atomic logic. And every system that needs to read or write from this "db queue" needs to leverage specific queries. That's the complexity.

      >vs writing code to support some other new system

      You mean using a stable well maintained library with a clean and sensible interface to a queueing system? Yes, that is far more simple.

      5 replies →