Skip to main content
πŸ”’ Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial β†’
⚑
← Coursesβ€ΊSystem Design for Python JuniorsModule 1 Β· Fundamentals + capacity Β· Recapβ€ΊπŸŽ― Review: System design module 1 recapscenario22 / 105
+80 XP
Task
Build a small `capacity_calc(rps, bytes_per_req, peak_multiplier)` that returns peak bandwidth as GB/day: ``` peak_bandwidth_gb_per_day = (rps * peak_multiplier * bytes_per_req * 86400) / 1_000_000_000 ``` Round DOWN to an integer (ops dashboards always show whole GB). The harness prints results for: - realistic (10k RPS, 2KB payload, 3Γ— peak) - edge (0 RPS β€” pre-launch) - huge scale (100k RPS, 50KB payload, 5Γ— peak)
✏️ Write your code here
🐍
Loading Python...
One-time download (~1 MB). Then it runs instantly.
πŸ“Š Result
Press Run to see result...

πŸ’¬ Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…