All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

PgQue: Zero-Bloat Postgres Queue System Using Pure SQL and pg_cron

By

gmcabrita

1mo ago· 10 min readenCode

Summary

PgQue is a zero-bloat Postgres queue system that revives the PgQ architecture originally designed at Skype for handling messaging for hundreds of millions of users. The key innovation is that PgQue runs entirely within Postgres using pure SQL, requiring only one SQL file for installation and pg_cron for scheduling, making it compatible with managed Postgres providers where the original PgQ's C extension and external daemon cannot run. The article presents PgQue as a universal edition that brings proven queue architecture to modern Postgres deployments.

Key quotes

· 4 pulled
PgQue brings back PgQ — one of the longest-running Postgres queue architectures in production — in a form that runs on any Postgres platform, managed providers included.
PgQ was designed at Skype to run messaging for hundreds of millions of users, and it ran on large self-managed Postgres deployments for over a decade.
Standard PgQ depends on a C extension (pgq) and an external daemon (pgqd), neither of which run on most managed Postgres providers.
PgQue rebuilds that architecture using pure SQL, requiring only one SQL file to install and pg_cron to tick.
Snippet from the RSS feed
PgQue – Zero-bloat Postgres queue. One SQL file to install, pg_cron to tick. - NikolayS/pgque

You might also wanna read