PostgreSQL

Start with one worker and a table of jobs. Follow the same queue as it grows to handle retries, dispatch, and access for several shops.

See All Categories

Queues and transactions

  1. 01 Wait, you can put functions in Postgres? Write a PostgreSQL function and call it with SELECT. Follow a job queue example to see what happens when two workers call it together.
  2. 02 How Postgres wakes a worker with LISTEN and NOTIFY Use three database sessions to see when PostgreSQL delivers a notification, what two listeners receive, and how a worker recovers jobs on reconnect.