Which of the following components is essential for designing a fine calculation system for a library?
Think about what is needed to calculate fines and collect payments.
A fine calculation system needs to know who the user is, what books they have, the rules for fines, and a way to collect payments.
Which architecture best supports a fine calculation system that must handle millions of users with low latency?
Consider scalability and separation of concerns.
Microservices allow independent scaling of components like fine calculation and payment processing, improving performance and maintainability.
During peak hours, the fine calculation system experiences high traffic. Which approach best ensures system availability and responsiveness?
Think about distributing load and scaling dynamically.
Load balancers distribute requests evenly, and auto-scaling adds more service instances automatically to handle increased load.
What is the main tradeoff when choosing real-time fine calculation over batch processing?
Consider speed versus resource usage.
Real-time calculation gives instant results but needs more CPU and memory; batch processing saves resources but results are delayed.
A fine calculation system logs each fine event with 1 KB of data. If the system expects 10 million fine events per month, what is the approximate storage needed per year?
Calculate monthly data and multiply by 12 months.
10 million events × 1 KB = 10 million KB = ~10 GB per month. For 12 months, 10 GB × 12 = 120 GB. But 10 million KB is actually about 10 GB, so 10 million KB × 12 = 120 GB. Check units carefully.
