~/talk

Building a Distributed Queue with Delayed Jobs on PostgreSQL

TalkinRussianat Joker 2022 · 2022-11-08..11-19· [databases, distributed-systems]
links:none on file
slides:none on file

A developer shows how to build a distributed task queue using PostgreSQL and Java, with code samples for table/row structure in SQL and Java. The design uses Postgres locks and waiting for locks inside transactions to ensure retries and strict single-entity sequential execution; the talk also covers queue size, indexes, diagnostics for where the data came from, and load-test results.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Need for custom job queue
  3. 7:32Queue in PostgreSQL
  4. 12:35Selecting jobs with locking
  5. 15:53Batching by entity
  6. 20:49Index problems and fixes
  7. 27:25Partial indexes role
  8. 31:41Optimizing queue indexes
  9. 34:15Partitioning and cleanup
  10. 38:10Querying partitions
  11. 38:32Implementation limits
  12. 40:43Summary
  13. 42:31When to use this
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.