Concert Reservation Service
2024-10-05 — 2024-11-30
Concert seat reservation service built during Hanghae Plus Backend course, focusing on concurrency control and high-traffic handling
Project Description
A project that resolved concurrency issues in high-traffic environments using multiple locking strategies (pessimistic, optimistic, and Redis distributed locks), selecting the optimal approach per scenario. Designed a hybrid strategy applying optimistic locks for seat reservation and Redisson-based distributed locks for point charging and payments. Optimized read performance through Redis caching and DB indexing, and reduced system coupling with Kafka-based event-driven architecture. Experienced the full cycle of identifying and resolving performance bottlenecks through K6 load testing.
Highlights
- 50% seat reservation response time improvement with optimistic locking (10K concurrent)
- Hybrid locking strategy: optimistic lock for seats, Redisson for payments
- 15x TPS improvement (100 → 1,500), 94% DB query reduction via Redis caching
- Kafka event-driven architecture eliminating inter-domain coupling
- Performance bottleneck identification and resolution via K6 load testing
Lessons Learned
- 💡 Understood fundamental differences in concurrency control by comparing pessimistic, optimistic, and distributed lock tradeoffs
- 💡 Learned context-driven selection over single solutions through hybrid locking strategy design per scenario
- 💡 Experienced layered caching strategy maximizing read performance by combining Redis caching with DB index optimization
- 💡 Learned async communication design eliminating inter-domain coupling through Kafka-based event-driven architecture