Design Live Sports Score System

Real-time sports scores, built up in 4 stages: ingest official partner feeds in order and exactly once, serve 80K reads/s through a CDN and cache, push every goal to fans' screens in under a second over live connections, then harden with dead-letter retries, monitoring and multi-region failover — 22 components at the final stage, each stage sized for more than 2× headroom. A teaching design inspired by live-score services, not any one company's internal architecture.

How the design evolves

Stage 1: Partner ingestion + durable event log

Build a reliable ingest path with ordering, dedupe, and a durable event log you can replay.

What was missing: Everything starts with getting the score in correctly. Before fans can see anything, we need a reliable way to accept events from official data partners — in order, exactly once, and without ever losing one.

Why that's risky: Without a durable, ordered log, a crash or a partner resending the same event could lose a goal or count it twice — and there would be no way to rebuild the correct score afterwards.

What gets added: A separate partner entry point (mutual TLS + firewall), per-partner rate limits, an Ingestion Service that dedupes and checks sequence numbers, a Match Event Stream partitioned by match, a single-writer Match State Builder, the Snapshot DB (current score per match) and a permanent Event Archive.

Trade-offs: Event sourcing (storing every event, not just the latest score) costs storage and adds a step before the score updates — in return you get replay, audit, and easy correction of mistakes.

Stage 2: Read path at scale (CDN + cache + API)

Serve millions of reads safely using CDN + cache; keep DB off the critical fan traffic path.

What was missing: Fans can't read the score yet. 80K requests per second during a final would crush any database if every request reached it.

Why that's risky: During a big match everyone asks for the same few scores at the same moment — a classic 'hot key' that can overload a single cache node or database row.

What gets added: A CDN that micro-caches each match's score for 1 second, an API Gateway with rate limits, a stateless Score API, and a Redis Score Cache that the State Builder refreshes on every change.

Trade-offs: A 1-second CDN cache means a fan who only refreshes the page may see a score up to 1 second old — fine for page loads, and the live connection in the next stage removes even that delay.

Stage 3: Realtime delivery (WS/SSE + pub/sub)

Fan out ordered deltas to connected clients using realtime gateways and a pub/sub layer.

What was missing: Fans have to keep refreshing to see new goals. Polling from 800K devices is wasteful and still feels slow.

Why that's risky: Polling creates thundering herds (everyone refreshing at once after a goal) and still delivers updates late.

What gets added: Realtime Gateways holding WebSocket / SSE connections behind their own load balancer, a Delta Pub/Sub with one channel per match, and a Notification Worker that sends push alerts for big moments via APNs/FCM.

Trade-offs: Long-lived connections need many gateway servers and careful reconnect handling (jittered backoff), but deliver goals to screens in under a second.

Stage 4: Production hardening (multi-region + ops)

Make the system resilient: retries/DLQ, observability, and multi-region failover for big matches.

What was missing: Operational safety: handling bad partner data and failed deliveries, visibility into what is happening, historical stats, and surviving a whole region going down.

Why that's risky: During a final, one malformed partner event or a stuck consumer could freeze updates for everyone — and without monitoring nobody would notice until fans complain.

What gets added: A Dead-Letter Queue with a Retry Worker (poison-pill events and failed publishes are set aside and retried instead of blocking the match), Observability tracking the key SLOs, and a Stats & History DB built from the stream.

Trade-offs: Two active regions roughly double infrastructure cost and require careful handling of which region 'owns' a match's writes — worth it for events watched by millions.

Frequently asked questions

How do you handle late corrections from official feeds?

Write compensating events with higher sequence/version; consumers rebuild snapshots; clients receive correction deltas.

What happens if a partner sends malformed or poison-pill events during a final?

Validate at ingestion, quarantine failures into a DLQ, and use delayed retries with alerting. Keep the stream moving by skipping/isolating bad partitions and replay once fixed.

PRISM
System Design Interview
Round 1 of 4 · Architecture Design · 60:00 remaining
PRISM logo PRISM logo
Problems
AI Interview
Interview Challenges
Build & Stress Test NEW
System Architectures
Design & Fix NEW
Interactive Roadmap
System Design Guides Interview Prep Guide
Problems
Today's mission
Notifications
    Theme
    Pricing Community NEW Send feedback Report a problem NEW
    Sign in
    Theme
    Community NEW Send feedback Report a problem NEW
    All problems
    Phase
    Build & Stress Test
    Phase 01: Thinking in Systems
    Upcoming

    Components

    User
    CDN
    Load Balancer
    Server
    Cache
    Database
    Blob Storage
    Search Index
    Queue
    Worker
    Rate Limiter
    Service
    API Gateway
    Reverse Proxy
    WebSocket Server
    Third-party API

    Inspector

    Notes
    Use clear names so your design intent is easy to understand.
    Good
    Name by business meaning
    "Order API", "Restaurant Service"
    Avoid
    Generic names = zero signal
    "Server 1", "API", "Queue"
    A short description for each component makes feedback much better.
    100%
    Start by identifying:
    • Users & entry points
    • APIs & services
    • Databases & storage
    • Traffic flow & scale

    Round 1 of 4 Architecture Design

    Run a simulation to see results.

    Time Remaining
    60:00
    System Design Interview

    What are the core functional requirements?
    What are the key non-functional constraints?

    Questions

    Start Evaluation to unlock questions.

    EVALUATE MODE

    Test yourself like it's the real thing.

    A structured 4-module evaluation that mirrors how top companies assess system design candidates.

    Architecture Design
    Draw your system on the canvas. Define components, connections, and data flow.
    FR & NFR Requirements
    Answer functional and non-functional requirement questions about your design.
    MCQ Round
    Multiple choice questions testing your depth on the chosen system.
    Tradeoff Analysis
    Justify your design decisions and defend your architectural tradeoffs.
    AI Report Generated
    Choose a Problem
    No problem selected
    • 30 min
    • 45 min
    • 60 min
    Round 2 of 4
    MCQ Round
    Answer multiple-choice questions based on your design.

    Exit Interview?

    You're in the middle of an interview session. Leaving now will end your current attempt.

    Your progress will be saved.

    Open a saved design

    Select a design to load into the canvas.

    My Evaluations

    Your past evaluation sessions

    Here’s a simple request flow that follows the expected layer order.

    External User
    →
    Edge CDN → API Gateway → Load Balancer
    →
    Compute App Servers / Services
    →
    DataAccess Cache
    →
    Storage Database / Search Index
    →
    Async Queue → Worker

    Tip: keep arrows moving forward through layers (Edge → Compute → Storage). Avoid sending storage back to compute.

    Evaluation Instructions

    Read the rules carefully before starting. The test auto-submits on refresh.

    Before you start

    • Build your architecture on the canvas. The timer starts when you click Start Evaluation.
    • Don't forget to answer Functional Requirement and Non Functional Requirements.
    • When satisfied with your design, click Next to lock it and view the questions.
    • Please answer final step questions to complete the evaluation.

    Dos

    • Do read each question carefully before answering.
    • Do include required components to maximize component coverage.
    • Do save a copy of your design if you want to keep it before submission.

    Don'ts

    • Don't refresh or close the tab during an active evaluation — this will auto-submit your answers.
    • Don't switch app modes or open another tab while the evaluation is running.
    • Don't attempt to edit the design after clicking Next; the workspace will be locked.

    All the best!!

    Confirm

    Input

    Notice

    Evaluation Report
    Report a problem

    Evaluation Complete

    Generating Your Report

    Hang tight — our AI is evaluating your design…

    Did you know?

    Loading…

    Share feedback

    Tell us what worked well and what we can improve.

    Let's personalize this

    Answer a couple of quick questions so we can tailor your journey and missions.

    Your welcome gift: of Full PRISM Access

    Your Pro access starts as soon as you press Start my journey.

    SYSTEM BRIEF

    System Constraints

    What the system must do — every item is a user-facing behaviour your architecture must support.

      ↑ Engineering Constraints

      These are the failure modes you must design against — latency SLAs, durability targets, traffic ceilings.

        ⇆ Architecture Constraints

        Core Concepts to Master

        Your Journey
        PHASE – –
        0 / 0 0%
        0
        Mock Interview Checklist

        Pick a topic to start

        Explore concept overviews, real-system examples, key tradeoffs, and interview talking points for each roadmap section.

        Phase Mastered

        You've conquered this phase. These are the skills you now own:

          +500 XP

          Company Interview Paths

          Progress Summary