~/talk

Blazingly Fast Message Queue on Postgres with Rust

Talkat PostgreSQL Conference Europe 2023 · 2023-12-12..12-15· [databases, rust]
links:none on file
slides:none on file

An open source Postgres extension called PGMQ implements a SQL API and Rust client via PGX, stores messages as JSONB with optional archive tables, and guarantees temporary exactly‑once delivery using a visibility timeout. Benchmarks on a 16 vCPU 32 GB EC2 host with 5 producers and 40 consumers (batch size 10) show ~3–5 ms latencies and about 20k msgs/s for 22 B messages, performance degrading with larger payloads; autovacuum and partitioning (PG Partman) are critical to avoid bloat.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:31Project origin and use cases
  3. 7:16PG MQ API and design
  4. 9:06Visibility timeout explained
  5. 12:00Underlying Postgres operations
  6. 18:27Benchmarking results and insights
  7. 26:20Running PG MQ in production
  8. 29:33Future plans for PG MQ
  9. 31:25Live demo of PG MQ
  10. 41:22Q&A session
~/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.