Library / Blogs
Pluralsight Engineering Blog
Browse through our libraries of online resources for you to stay up-to-date on all that is changing your software development, IT ops, cyber security and more.
By Pluralsight engineers · Pluralsight · Added 2026-10-12
All content belongs to Pluralsight engineers / Pluralsight. We only link to it and give credit. Report a problem
Learn this article
About 37 min left. Your work is saved as you go.
What you are about to study
Pluralsight wrote this to explain how they thought about a problem. You should know the basics: caching, queues and replication.
Ideas you will meet
- Distributed Systems
- Consensus, time, failure and the fundamentals of scale-out.
What we already know about this
Our own lessons on these ideas. Read them here before you start, so it makes sense.
Low-Level Design Practice · 11 minMovie ticket bookingSeats, shows and temporary holds: how to let many people pick seats at once without selling the same seat twice.Read here
The problem
A theatre chain runs screens that show movies at set times. Customers browse shows, pick seats, pay and receive a ticket. Many customers pick seats for the same popular show at once. A seat must never be sold twice.
Entities
100%Figure SDA-LLD-05-1 · Movie booking classes · © forcsguy.com
The key idea:
ShowSeatis a seat in one show. A physical seat exists for all shows; it is available or taken per show. Status values:AVAILABLE,HELD,BOOKED.The seat lifecycle
100%Figure SDA-LLD-05-2 · Show seat status · © forcsguy.com
class ShowSeat { status: "AVAILABLE" | "HELD" | "BOOKED" = "AVAILABLE"; heldBy?: string; heldUntil = 0; // must be atomic: a lock per seat in memory, a conditional UPDATE in a database tryHold(user: string, ms = 10 * 60_000): boolean { if (this.status === "HELD" && Date.now() > this.heldUntil) this.status = "AVAILABLE"; if (this.status !== "AVAILABLE") return false; this.status = "HELD"; this.heldBy = user; this.heldUntil = Date.now() + ms; return true; } confirm(user: string): boolean { if (this.status !== "HELD" || this.heldBy !== user) return false; this.status = "BOOKED"; return true; } }In a database this is one statement:
UPDATE show_seat SET status='HELD', held_by=?, held_until=? WHERE id=? AND (status='AVAILABLE' OR held_until < now())and the affected-row count tells you whether you won.Booking several seats
100%Figure SDA-LLD-05-3 · Booking flow · © forcsguy.com
If any seat in the group cannot be held, release the ones you did hold and tell the customer. This avoids a half-booked group.
Design notes
- Pricing by seat category, time and day is a strategy or a price table on
ShowSeat. - Expiry can be a background job or a check at read time (as above). A job keeps the displayed seat map accurate.
- Hot shows: at huge scale put the seat state in a fast store with atomic operations, and queue requests; this overlaps with the flash-sale design in the real-world systems course.
- Idempotent payment: a retried payment callback must not issue a second ticket.
- Extensions: seat recommendations, food add-ons, cancellations with refund policy, and notifications on confirm.
Real-world reading
Related reading
- Rewriting the heart of our sync engineDropboxCase Studies
- Megastore: Providing Scalable, Highly Available Storage (paper)Baker et al. · GooglePapers
- Scaling Dropbox - Kevin Modzelewski, Back-end Engineer at DropboxDropboxYouTube
- Hussein Nasser: Backend Engineering ShowHussein Nasser · Hussein Nasser (YouTube)YouTube
Show 6 moreShow fewer
- Uber Engineering — Where the Digital World Meets the Physical OneUber engineers · UberBlogs
- Handles Millions of Digital Transactions Safely Everyday at PaytmPaytm engineers · PaytmCase Studies
- Distributed systems theory for the distributed systems engineerHenry Robinson · The Paper TrailBlogs
- The Pragmatic EngineerGergely Orosz · SubstackPodcasts & Newsletters
- Soundcloud Engineering BlogSoundcloud engineers · SoundcloudBlogs
- Pluralsight Engineering BlogPluralsight engineers · PluralsightBlogs
- Pricing by seat category, time and day is a strategy or a price table on
Go deeper on this
A path through videos, articles, other case studies and code on the same ideas as Pluralsight Engineering Blog.
Warm upGet the vocabulary first.
Books · Free from the author
Concurrent and Distributed Systems (Cambridge lecture notes)
Eight lectures on time, broadcast, replication, consensus and transactions, with notes, slides and video. Free from the author under CC BY-SA.
University of CambridgeIntermediate
Books · Free from the author
Computer Networks: A Systems Approach
How networks are built and why: protocols, routing, congestion control and the internet's architecture. The authors publish it free online under CC BY 4.0.
Systems ApproachIntermediate
WatchHow others solve the same problem, on video.
Videos belong to their creators and play from YouTube. More on YouTube (opens in a new tab)
ReadEngineers explain it in their own words.
Blogs · Free from the author · Read here
Scalable Web Architecture and Distributed Systems
A full chapter on the building blocks of large websites: availability, performance, reliability, scalability, caches, proxies, indexes, load balancers and queues. Free to read here under CC BY 3.0.
The Architecture of Open Source ApplicationsBeginner40 min
Papers · Read here
Facebook’s photo storage
This paper describes Haystack, an object storage system optimized for Facebook’s Photos application. Facebook currently stores over 260 billion images, which translates to over 20 petabytes of data.
USENIXIntermediate
See it in another companyThe same ideas, a different system.
Case Studies · Read here
Aroma: Using ML for Code Recommendation at Facebook
Thousands of engineers write the code to create our apps, which serve billions of people worldwide. This is no trivial task—our services have grown so diverse and complex that the codebase contains…
FacebookIntermediate
Case Studies · Read here
Brooklin: Distributed Service for Near Real-Time Data Streaming at LinkedIn
Brooklin—a distributed service for streaming data in near real-time and at scale—has been running in production at LinkedIn since 2016, powering thousands of data streams and over 2 trillion messages per day. Today, w...
LinkedInIntermediate
Read the codeSee how it looks when it is real.
GitHub
Engineering Blogs
A huge directory of company engineering blogs to learn from real production systems.
kilimchoiIntermediate
GitHub
Awesome Scalability
Curated reading list of articles on the architecture of scalable, reliable systems.
binhnguyennusIntermediate
Keep learning
Loading community…