← Simulation Lab

🖥️ Keep the website fast during the Diwali sale

Software & Cloud

An e-commerce site gets a traffic spike. Add servers, cores or a cache and watch response time. Servers cost money every month.

⭐ Level 1: Trainee0 XP · next level at 300
🎯 Normal day, 2,000 requests/s: response time 100 ms or less with no more than 15 servers.
Controls
Results
Server load✗ 250 %
Average response time✗ site DOWN (overloaded)
Monthly cost₹24,000

Overloaded: requests pile up and the site falls over. Add capacity or a cache.

📘 How it works

Response time stays low until servers get busy, then shoots up (queueing). Keep load under ~70–80 %. Caching common pages is often cheaper than adding servers.

Capacity = cores × 1000 ÷ ms · Load ρ = traffic ÷ (servers × capacity) · Response ≈ service time ÷ (1 − ρ)A simplified textbook model for learning. Real designs follow the full codes and standards.