ghost's profile
Deleted user@ghost•Jul 11, 2025
8.5K
Post cover image

Postgres LISTEN/NOTIFY does not scale

Avatar of hnHacker News•From recall.ai•Jul 10, 2025•4m read time

PostgreSQL's LISTEN/NOTIFY feature causes severe performance bottlenecks under high write concurrency due to a global database lock acquired during transaction commits. When NOTIFY is used, all commits become serialized, leading to database stalls despite low CPU and I/O usage. The issue was discovered through production outages at a company processing millions of meeting recordings with thousands of concurrent writers. Load testing confirmed that removing LISTEN/NOTIFY eliminated the bottleneck and restored full database performance. The solution involved migrating to HTTP-based notifications instead of the database-level pub/sub mechanism.

Sort:

ghost's user avatar
Deleted user
@ghost
Joined May 10. 2023
8.5K

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard