Tag: PostgreSQL
All the articles with the tag "PostgreSQL".
Cloud Migration, Part 2: Preparing the DB Cutover with Sync Monitoring and a Shadow Rehearsal
—viewsI walk through what happens after the data is moved with PostgreSQL logical replication and before the DB cutover is approved. The platform monitors the sync through replication state and lag, runs a shadow rehearsal by mirroring real GET traffic through Envoy, connects the app to PgBouncer, and then requests cutover approval.
Cloud Migration, Part 1: Zero-Downtime Data Migration with PostgreSQL Logical Replication
—viewsI walk through how the cloud migration platform we built at the SoftBank Hackathon moved PostgreSQL from AWS EKS to an on-premises k3s cluster. It builds a replication path over a WireGuard tunnel, verifies it with a network preflight, and moves the data with logical replication (initial copy + CDC) without stopping the app.
Query Optimization, Part 3: Analyzing Application Code and Improving Performance
—viewsI trace repeated queries through the application code, change unread-item counts to be aggregated in one batch, and measure HTTP response times and SQL execution costs again.
Query Optimization, Part 2: Analyzing SQL and Execution Plans
—viewsThis post describes how I checked query execution counts for read APIs in Hibernate SQL logs and analyzed their actual cumulative costs using PostgreSQL execution plans and pg_stat_statements.