You are designing a new social media app expected to launch in a city with 5 million people. Estimate the number of daily requests the backend servers should handle on launch day.
Assume 10% of the population will sign up in the first month, and each active user generates 50 requests per day.
Calculate 10% of 5 million users, then multiply by 50 requests per user.
10% of 5 million is 500,000 users. Each user makes 50 requests daily, so 500,000 * 50 = 25 million requests per day.
Which of the following best explains why low latency is critical in system design for real-time applications?
Think about how users feel when a system responds quickly versus slowly.
Low latency means the system responds quickly to user actions, which is essential for good user experience in real-time apps.
You are designing a video streaming service expecting 10 million peak concurrent viewers. Each viewer streams at 3 Mbps. Estimate the total bandwidth required to support peak traffic.
Multiply the number of viewers by the streaming rate, then convert to appropriate units.
10 million viewers * 3 Mbps = 30 million Mbps = 30 Tbps total bandwidth needed.
Which statement best describes a tradeoff when choosing horizontal scaling over vertical scaling?
Consider how adding more machines affects system design and reliability.
Horizontal scaling adds more machines, improving fault tolerance but making the system more complex to manage.
An e-commerce site has 1 million daily active users. Each user views on average 20 product pages per day. Each product page data size is 50 KB. To cache 10% of the most popular product pages, estimate the minimum cache size needed in GB.
Calculate total page views, then 10% of that, multiply by page size, and convert to GB.
1 million users * 20 pages = 20 million views. 10% of 20 million = 2 million pages cached. 2 million * 50 KB = 100,000,000 KB = 100,000 MB = 100 GB. But since pages may repeat, caching unique pages is less. Assuming unique pages are fewer, 10 GB is a reasonable minimum cache size.