← All tags

#postgres

2 posts

Write to Postgres Before You Publish the Event

The order in which you commit a row and publish a real-time event determines whether your UI and your database can ever disagree. Always write first.

#postgres #real-time #distributed-systems

Why PgBouncer in Transaction Mode Is the Default

Postgres tops out at a few hundred concurrent connections. Workers and serverless handlers want thousands. Transaction-mode pooling is the cheap fix — and a small set of constraints you have to live with.

#postgres #infrastructure #databases