A Ticketing System That Can Theoretically Handle 100,000 QPS
The first 1,000 tickets go through a web app behind a distributed lock. Does that lock actually keep concurrency under control when the rush hits?
3 posts

The first 1,000 tickets go through a web app behind a distributed lock. Does that lock actually keep concurrency under control when the rush hits?

Like-button races, solved with database locks. How pessimistic locking works, and how next-key locks slow the check for whether a review was already liked.

1,000 people request 100 items at once. How a single UPDATE gives one to exactly 100 of them, instead of the locks usually proposed for a first-come event.