Posts tagged “scaling”
-
How do you scale an API on AWS?
The AWS building blocks for each scaling technique (CloudFront and ElastiCache for caching, ALB and Auto Scaling for replicas, RDS Proxy for connections, Aurora replicas for reads, SQS for spikes, WAF for abusive clients), in the order you'd reach for them.
-
How do you scale an API?
Find the bottleneck first, then use the cheapest lever that removes it: fix the query, cache the read, pool the connections, add replicas, queue the slow writes, limit each client. Each lever measured on one machine: what it bought, and what it cost.
-
Read replicas, partitioning or sharding: what does each one fix?
Three ways to outgrow one database, often confused. Replicas add read capacity and cost you freshness. Partitioning keeps one huge table manageable but adds no capacity. Sharding adds write capacity and costs you almost everything that was easy. Measured on PostgreSQL 17: replica staleness, and…