At Sentry, Postgres is used as the relational datastore, and it has been scaled both vertically and horizontally. The application leverages product area sharding to isolate infrastructure and minimize failure impact. Django's ORM with database routers supports multiple database configurations and seamless transactional operations. The process involves analyzing and adjusting foreign key constraints, updating `pgbouncer` configurations, and ensuring logical and physical separation of databases to meet growing demands.

5m read timeFrom sentry.engineering
Post cover image
Table of contents
How we operate postgresDjango with multiple databasesPreparing for a database splitPhysical Separation and CutoverIn closing

Sort: