B2B software System optimization

BackendPerformanceOptimization

PostgreSQL optimization for an existing product, reducing API response time and increasing the workload its backend could handle

A conceptual backend system: requests flow through indexed records, a database, materialized views and JSONB documents to responses. Floating diagrams show data relations and the domain model; telemetry values are illustrative

The work

Making each request do less database work

As a backend engineer on the product, I worked on its PostgreSQL data layer to improve API performance. The implementation covered indexes, materialized views, partitioning and JSONB schemas

The focus was on how requests accessed data: finding relevant records more directly, reusing computed results and organizing data around the queries the backend needed to serve

The result

85% less time waiting for an API response

On the workload being optimized, average API response time fell from 1,200 ms to 180 ms. Throughput increased from 50 to 350 requests per second

An 85% reduction in response time and sevenfold throughput increase, achieved through focused changes to the existing data layer

Average API response time fell from 1,200 ms to 180 ms. Throughput rose from 50 to 350 requests per second
Average API response time
Before1,200 ms
After180 ms
Throughput
Before50 requests/s
After350 requests/s

Tell me what you're building

Send a few lines or just your email. I'll reply within one working day

Start a project

Tell me about your project

Leave your email and I'll get back to you to talk it through

Please don’t include passwords or confidential information

I’ll use your details to reply. See the Privacy notice