Bird
0
0
LLDsystem_design~20 mins

Reservation and hold system in LLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Reservation System Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Identify the correct component for handling reservation expiration

In a reservation and hold system, which component is best suited to automatically release held items after a timeout period?

AThe user interface component that prompts users to release holds manually.
BA background scheduler service that tracks hold expiration and releases items.
CThe database triggers that delete hold records after a fixed time.
DThe payment gateway that cancels holds if payment is not received.
Attempts:
2 left
💡 Hint

Think about which part can run tasks independently and periodically.

scaling
intermediate
2:00remaining
Scaling holds in a high-traffic reservation system

Which approach best supports scaling the hold feature in a reservation system with millions of concurrent users?

AStore hold states in a distributed in-memory cache with TTL (time-to-live) support.
BKeep all hold data only in a single relational database instance.
CUse local session storage on user devices to track holds.
DWrite hold information directly to log files for later processing.
Attempts:
2 left
💡 Hint

Consider fast access and automatic expiration for large scale.

tradeoff
advanced
2:00remaining
Tradeoff between consistency and availability in hold release

In a distributed reservation system, what is the main tradeoff when choosing to release holds immediately versus eventually?

AEventual release guarantees immediate availability but sacrifices data durability.
BImmediate release improves availability but causes stale data inconsistencies.
CImmediate release favors consistency but may reduce availability during network issues.
DEventual release ensures strong consistency but delays user feedback.
Attempts:
2 left
💡 Hint

Think about how quickly the system updates state and handles failures.

🧠 Conceptual
advanced
2:00remaining
Understanding idempotency in hold requests

Why is idempotency important when processing hold requests in a reservation system?

AIt guarantees that holds never expire automatically.
BIt ensures holds are always released after a fixed timeout.
CIt allows multiple users to hold the same item simultaneously.
DIt prevents duplicate holds when the same request is retried due to network errors.
Attempts:
2 left
💡 Hint

Consider what happens if a request is sent multiple times.

estimation
expert
2:00remaining
Estimating capacity for hold expiration processing

A reservation system expects 10 million holds daily, each expiring after 15 minutes if not confirmed. How many hold expirations must the system process per second on average?

AApproximately 11,574 expirations per second.
BApproximately 1,157 expirations per second.
CApproximately 6,944 expirations per second.
DApproximately 694 expirations per second.
Attempts:
2 left
💡 Hint

Calculate total seconds in 15 minutes and divide total holds by that.