Home / Insights / Web and SaaS Development
Web and SaaS Development
Ticketing and Event Platforms: Queues, Seat Maps and Peak-Load Architecture
A ticketing platform spends most of the year lightly loaded and then has minutes in which demand can exceed supply many times over. Designing for those minutes, without overspending for the rest of the year, is the central architecture problem.
TopicsWeb and SaaS DevelopmentArchitecture and Modernization
Key takeaways
- Treat the on-sale as a capacity-management problem: a virtual waiting room in front of the purchase flow protects the system and gives fans a fairer, more predictable experience.
- Seat inventory is the one place you cannot cut corners on consistency. Use short-lived holds with explicit expiry and database-level locking so the same seat can never be sold twice.
- Separate the read-heavy parts (event pages, seat map rendering) from the write-critical parts (holds, orders, payments) so each can scale and fail independently.
- Bots are a design input, not an afterthought: combine queue controls, purchase limits, verification and monitoring, and know the legal context in your markets.
- Load test the full journey at realistic peak levels, including payment providers and third-party services, and rehearse the on-sale like a launch.
On this page
- Why on-sales break systems: understanding the load profile
- Virtual waiting rooms and queue design
- Seat inventory, holds and preventing double-selling
- Seat maps: performance, accuracy and accessibility
- Reference architecture, orders and payments
- Bots, fairness and the legal context
- Load testing, rehearsal and an implementation checklist
- Frequently asked questions
- Sources and methodology
Ticketing looks simple from the outside: list an event, show available seats, take payment, send a ticket. The difficulty is concentration. A popular on-sale compresses weeks of demand into minutes, and every buyer is competing for the same limited inventory. When Ticketmaster explained the November 2022 Eras Tour presale, it reported around 3.5 billion total system requests, roughly four times its previous peak, alongside significant bot traffic (Ticketmaster, 2022). Most platforms will never see that scale, but the same failure modes appear at much smaller numbers.
This article is for CTOs, product owners and founders building or modernising ticketing, booking or event platforms, from venue box offices and festival apps to class booking and sports clubs. It covers queueing and waiting rooms, seat inventory and holds, seat map design, payments and order flow, bot defence, load testing and an implementation checklist. It draws on our entertainment and media work, where we build consumer apps with subscriptions, payments and content delivered through CDNs, and on general high-concurrency patterns we use across web platforms.
Why on-sales break systems: understanding the load profile
A typical web application sees traffic rise and fall gradually. A ticketing platform sees a cliff: near-zero traffic until the published on-sale time, then a surge as everyone arrives at once, often refreshing repeatedly. Several characteristics make this harder than ordinary scaling.
What makes ticketing load different
- Synchronised arrival. Buyers arrive at a known second, so autoscaling that reacts over minutes is too slow on its own.
- Contention on a small dataset. Thousands of users want the same few hundred best seats. The bottleneck is often row-level contention in the inventory database, not CPU.
- Mixed read and write patterns. Browsing an event page is cacheable; holding a seat and taking payment are not.
- External dependencies. Payment gateways, fraud checks, email and SMS providers have their own rate limits.
- Adversarial traffic. Automated buyers aim to acquire inventory for resale, adding load and distorting fairness.
Start by quantifying your peak
Estimate the expected number of concurrent visitors at the on-sale moment, the number of seats, and how long each successful purchase takes from seat selection to confirmation. These three numbers tell you how many people can realistically be in the purchase flow at once and how long others will wait. For example, an illustrative 8,000-seat arena show with demand of 80,000 visitors cannot let everyone into seat selection simultaneously without most of them experiencing errors.
Action: for your next large on-sale, write down the expected peak visitors, inventory size and target purchase time, and calculate how many users your purchase flow must support concurrently. This becomes the target for the queue and for load testing.
Virtual waiting rooms and queue design
A virtual waiting room sits in front of the purchase flow and admits users at a rate the system can handle. It protects the back end, and it is usually fairer and calmer for fans than a site that errors under load.
How managed waiting rooms work
Cloudflare’s Waiting Room documentation describes the pattern: excess visitors are sent to a holding page during a surge, estimated wait times are updated continuously, each visitor’s place in line is remembered, and spots open as active users leave. Its configuration settings show the key controls most implementations share: a maximum number of total active users on the protected path, a threshold for new users admitted per minute, and a session duration after which inactive users lose their place. Cloudflare recommends setting total active users to about 75% of your origin’s capacity, which is a sensible principle whatever product you use: leave headroom.
Design choices to make
| Decision | Options | Considerations |
|---|---|---|
| Build or buy | Managed CDN waiting room; ticketing vendor queue; custom queue service | Managed options are fastest and absorb traffic at the edge; custom gives full control over fairness and branding but must itself survive the surge |
| Ordering | First in, first out; randomised for those who arrive before the on-sale | Randomising the pre-queue removes the advantage of refreshing at exactly the right second |
| Admission rate | Fixed; adjusted live by operators | Start conservatively and increase while watching error rates and database contention |
| Identity | Anonymous; signed-in or pre-registered fans only | Requiring sign-in before queueing reduces bots and lets you enforce limits per account |
| Session expiry | Short; long | Short sessions recycle capacity quickly; too short frustrates genuine buyers |
Queue experience
- Show a clear position or estimated wait, and explain what happens next.
- Do not make users refresh; the page should update itself.
- Tell people early when inventory is close to exhausted, rather than letting them wait for nothing.
- Protect the queue token: it should be signed and bound to the session so it cannot be shared or forged.
Action: decide your admission controls and fairness rules before the event is announced, and publish what you can to fans. Clear rules reduce complaints when demand exceeds supply.
Seat inventory, holds and preventing double-selling
Selling the same seat twice is the defining failure of a ticketing platform. Everything else can degrade gracefully; inventory integrity cannot.
Model seats as a state machine
Each seat (or each general admission allocation) moves through clear states: available, held, sold, and possibly released, reserved for promoters or blocked. Transitions should only happen through a small number of well-tested operations, and every hold must have an expiry time.
Holds with explicit expiry
- When a buyer selects seats, create a hold with a fixed expiry (for example, a few minutes) and show a visible countdown.
- On payment success, convert the hold to a sale in the same transaction that records the order.
- On expiry or abandonment, release the seats automatically through a background process.
- Limit the number of seats one session or account can hold at once.
Use the database’s locking correctly
Relational databases provide the tools to make holds safe. PostgreSQL’s SELECT locking clauses allow a transaction to lock the rows it selects against concurrent updates. Two options are particularly useful:
- NOWAIT makes the statement fail immediately if a row cannot be locked, which suits seat selection: tell the user the seat has just been taken rather than making them wait.
- SKIP LOCKED skips rows that other transactions have locked. The documentation warns that this gives an inconsistent view and is not suitable for general work, but is useful for queue-like tables with several consumers. In ticketing, it suits best-available allocation, where any free seat in a section will do.
| Selection mode | Recommended pattern | Why |
|---|---|---|
| Reserved seating, user picks a seat | Conditional update or lock with NOWAIT on that seat | Fail fast and show the user that the seat is gone |
| Best available in a section | Select free seats with SKIP LOCKED, then hold | Many buyers can be allocated in parallel without blocking each other |
| General admission | Atomic decrement on an allocation counter with a check against zero | No seat identity needed; contention is on one counter, so consider sharding allocations |
Caches and in-memory stores are valuable for showing availability quickly, but the database (or a dedicated, strongly consistent inventory service) must remain the source of truth for holds and sales. Treat cached availability as a hint that can be slightly stale.
Action: write automated concurrency tests in which many simulated buyers try to hold the same seats simultaneously, and assert that no seat is ever held or sold twice.
Seat maps: performance, accuracy and accessibility
Interactive seat maps are where users spend most of their time, and they are often the heaviest part of the front end.
Rendering and data
- Separate geometry from availability. The venue layout rarely changes and can be served as a cached static asset from a CDN. Availability changes constantly and should be a small, frequently refreshed data set.
- Choose rendering to suit venue size. SVG is easy to style and inspect for smaller venues; canvas or WebGL rendering handles tens of thousands of seats more smoothly. Many platforms show sections first and load seat-level detail on zoom.
- Update availability efficiently. Push or poll only changes, and throttle updates during peaks so clients do not overwhelm the back end.
- Design for mobile first. A large share of buyers will be on phones; tap targets, zoom and pan must work with one hand.
Accuracy and trust
- Show price, restricted view and accessibility information before selection, not after.
- Handle the race gracefully: if a seat is taken between display and selection, say so clearly and suggest alternatives.
- Offer a best-available option for users who do not want to pick seats, which also reduces load on the map.
Accessibility
A visual seat map alone excludes screen reader and keyboard users. Provide an accessible alternative, such as a list or filter-based selection by section, row and price, and make wheelchair and companion seating easy to find and book. Our guide to accessibility testing and WCAG 2.2 covers how to test interactive components like this.
Reference architecture, orders and payments
A ticketing platform benefits from a clear separation between components with very different load and consistency needs.
Components
- Edge and CDN: static assets, event pages, seat map geometry and the waiting room.
- Catalogue service: events, venues, prices; read-heavy and cacheable.
- Inventory service: seat states and holds; write-critical and strongly consistent.
- Order and payment service: creates orders, calls the payment provider, converts holds to sales.
- Fulfilment: ticket generation, wallet passes, email and SMS, processed asynchronously from a queue.
- Access control at the venue: scanning, with an offline-capable mode for poor connectivity.
Payment flow principles
- Idempotency. Every payment and order request should carry an idempotency key so retries, double clicks and network failures do not charge twice or create duplicate orders.
- Hold before charge. Only send users to payment once seats are held, and make the hold expiry longer than the expected payment time, including strong customer authentication steps.
- Reconcile asynchronously. Payment webhooks can arrive late or out of order. Design for a pending state and a reconciliation job that resolves mismatches.
- Respect provider limits. Agree expected peak volumes with your payment provider in advance.
Many of these patterns also apply to booking systems with limited capacity; our article on gym and studio management software discusses bookings, memberships and payments for a smaller-scale case.
Scaling approach
Pre-scale the stateless tiers before a known on-sale rather than relying on reactive autoscaling. Keep the inventory database on capacity sized for peak contention, and protect it with the waiting room and connection pooling. Move everything that does not need to happen during checkout (emails, analytics, ticket rendering) onto asynchronous queues.
Bots, fairness and the legal context
Automated buying is a commercial, reputational and sometimes legal issue. Ticketmaster’s explanation of its 2022 presale referred to a large volume of bot attacks alongside genuine demand, even with a registration-based presale in place.
Layered controls
- Pre-registration or verified fan programmes for high-demand events, so you know who is entitled to buy.
- Account and payment limits per event, enforced in the inventory and order services, not only in the user interface.
- Edge bot management and rate limiting on queue entry, seat hold and checkout endpoints.
- Behavioural monitoring for patterns such as many accounts sharing payment instruments or devices.
- Named or delayed ticket delivery to reduce the value of resale, where your market and promoters allow it.
Legal context
In the US, the Better Online Ticket Sales (BOTS) Act prohibits circumventing the security measures and access controls that ticket issuers use online, and selling tickets obtained that way, for events at venues with more than 200 seats (FTC: BOTS Act). Other countries regulate secondary ticketing and consumer information in their own ways. The practical implication for platform builders is that your access controls and logging may matter as evidence, so keep records of queue, purchase-limit and bot-detection events.
Action: agree purchase limits and anti-bot measures with promoters before each major on-sale, and make sure your logs can show what controls were in place.
Load testing, rehearsal and an implementation checklist
The only way to know a ticketing platform will survive an on-sale is to test the whole journey at realistic peak levels.
Load testing that reflects reality
- Simulate the arrival cliff, not a gradual ramp.
- Test the full path: queue admission, seat map, holds, payment (against the provider’s test environment) and fulfilment.
- Include contention: many virtual users targeting the same premium seats.
- Test failure scenarios: payment provider slowdowns, cache loss and a database failover.
- Monitor database lock waits, connection pool saturation and queue admission rate alongside response times. Our guide to observability with OpenTelemetry covers instrumentation that makes these signals visible.
On-sale rehearsal
Treat major on-sales like a product launch: a run sheet, named owners for queue admission rate, infrastructure and customer communications, and agreed criteria for slowing admission or pausing sales.
Implementation checklist
- Estimate peak visitors, inventory and purchase time for your largest expected on-sale.
- Put a virtual waiting room in front of the purchase flow, with admission controls and a fair pre-queue.
- Model seat states explicitly, with time-limited holds and automatic release.
- Use database locking (NOWAIT for chosen seats, SKIP LOCKED for best-available) and concurrency tests that prove no double-selling.
- Serve seat map geometry from a CDN and keep availability updates small and throttled.
- Provide an accessible, non-visual seat selection path.
- Make payments idempotent, hold before charging and reconcile webhooks asynchronously.
- Move fulfilment and notifications to asynchronous queues.
- Layer bot defences and enforce purchase limits in the back end.
- Load test the full journey at peak, then rehearse the on-sale with named owners.
Platforms that follow these principles do not make demand disappear, but they turn a chaotic on-sale into a controlled one: fans know where they stand, inventory stays accurate and the system stays up.
Frequently asked questions
Do we need a virtual waiting room if we already autoscale?
Usually, yes, for high-demand on-sales. Autoscaling reacts over minutes and does not remove contention on seat inventory. A waiting room controls how many people enter the purchase flow at once, which protects the database and gives buyers a predictable experience.
How long should a seat hold last?
Long enough for a typical buyer to complete payment, including authentication steps, and short enough to recycle abandoned seats quickly. Many platforms use a few minutes with a visible countdown. Measure real completion times and adjust.
Can we use Redis or another cache for seat inventory?
In-memory stores are useful for fast availability views and counters, but the final hold and sale should be recorded in a strongly consistent store with transactional guarantees. Treat cached availability as a hint that can be slightly out of date.
How do we make seat selection accessible?
Provide a non-visual alternative to the map, such as selecting by section, row and price from accessible lists, and make wheelchair and companion seats easy to filter and book. Test with keyboard and screen reader users.
What should we load test before an on-sale?
The full journey at realistic peak: queue admission, seat map, concurrent holds on the same seats, payment against the provider’s test environment and ticket delivery. Include failure scenarios such as slow payment responses and a database failover.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- Ticketmaster Business: Taylor Swift | The Eras Tour Onsale Explained (November 2022) — accessed 9 November 2026. Scale of the 2022 presale: about 3.5 billion system requests, around four times the previous peak, and bot attacks.
- Cloudflare Docs: Waiting Room — accessed 9 November 2026. How a virtual waiting room holds excess visitors, updates wait times and remembers queue position.
- Cloudflare Docs: Waiting Room configuration settings — accessed 9 November 2026. Total active users, new users per minute, session duration and the recommendation to set active users at about 75% of origin capacity.
- PostgreSQL Documentation: SELECT (locking clause) — accessed 9 November 2026. FOR UPDATE, NOWAIT and SKIP LOCKED behaviour and the warning about inconsistent views.
- US Federal Trade Commission: Better Online Ticket Sales Act — accessed 9 November 2026. Prohibition on circumventing ticket issuers’ security measures and reselling tickets obtained that way.
Related reading
Continue your research
Is your ticketing or booking platform ready for its next big on-sale?
We can review your queueing, inventory and payment design and plan load tests that reflect real on-sale traffic.
