Predictive and scheduled scaling for exam-day traffic spikes
Reactive autoscaling is minutes too late for a 10 a.m. mock test. How to use scheduled actions, predictive scaling and warm pools, and pre-scale databases and caches.
Reactive autoscaling is minutes too late for a 10 a.m. mock test. How to use scheduled actions, predictive scaling and warm pools, and pre-scale databases and caches.
Size database pools, Gunicorn workers and pods from real numbers with Little's Law, see why bigger pools slow Postgres down, and follow a worked exam-day example.
What 'sorry, too many clients already' means, how to find the culprits in pg_stat_activity, quick relief during an incident, and why raising max_connections isn't the fix.
What layer 4 and layer 7 load balancers can see and do, ALB vs NLB on AWS, load balancing algorithms, and a typical layout for a learning platform.
Fixed and sliding windows, token and leaky buckets compared, where to enforce limits, distributed limits with Redis, and how to protect OTP, login and test submission.
How to scale WebSockets: connections per server, load balancing long-lived connections, Redis pub/sub fan-out, reconnect storms, and when SSE or polling is simpler.
What each Cache-Control directive does, no-cache vs no-store, ETags and revalidation, and ready-to-use headers for static files, HTML, APIs and HLS video.
How edge caches decide hits and misses, what Cloudflare caches by default, cache rules for HTML, APIs and HLS, measuring hit ratio, and purging safely.
Set up Nginx proxy_cache, microcache dynamic pages for one second, bypass logged-in users, and stop pile-ups with cache locks and stale-while-updating.