10,000 Requests. 500 Seats. Zero Overselling.

A flash-sale booking API that protects seat inventory under heavy demand using database-level concurrency control.

We built a booking API that prevents double selling through PostgreSQL row-level locks, transactions and unique constraints. In local load tests, it processed 65,200 requests across 24 runs without overselling a seat. Comparing pessimistic and optimistic locking also showed why fair, complete sellouts matter more than raw request speed.

NestJS · TypeScript · PostgreSQL · Prisma · Redis · Docker · Row-Level Locks · Load Testing

← All projects

Email [email protected] · WhatsApp +974 3033 0109