Three Hundred Seats at MySQL
Easy · system design problem
A traffic spike autoscales orders-api past MySQL’s 300 connections. A proxy fixes the count — but with its default pool it caps throughput below the load.
orders-api (autoscaling, 25 connections per instance) and the reporting API share one MySQL primary that allows 300 connections. Every MySQL connection is a thread, and queries here take ~8 ms. At T+20s a TV ad multiplies shopper traffic by 2.5 for the rest of the evening and orders-api scales toward 40 instances — over 1,000 connections. Moving to Vitess is a months-long project; ProxySQL is a drop-in.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.