Case study · Paris 2024 Olympics

Live results data platform

As a subcontractor, I built a single GraphQL platform that became the source of truth for live results across 32 sports and 329 medal events, serving millions of readers through 17 days of competition with no unplanned downtime.

  • 6.5Mconcurrent readers at peak
  • 99.99%availability across the 17 days
  • 96%of reads served without touching the database
  • 18upstream APIs behind one schema

Challenge

  • Results, schedules, venues and athlete data came from 18 upstream APIs, each with its own format, rate limits and failure modes.
  • Officials uploaded scores live, and those had to reach every screen within seconds.
  • Traffic was extremely spiky: quiet between sessions, then surges of more than 40x at finals and medal moments.

What I built

  • An ingestion layer that pulls, validates and normalises every upstream feed into one canonical data model, with retries, dead-letter queues and idempotent writes.
  • A federated GraphQL API over the unified data, with persisted queries, query cost limits and DataLoader batching to remove N+1 lookups.
  • A secure live score-upload path for officials, with role-based access, audit logs and conflict handling for corrections and protests.
  • Real-time delivery through GraphQL subscriptions over WebSockets, so clients get pushed updates instead of polling.
  • Layered caching (CloudFront edge, in-process and ElastiCache Redis) with event-driven invalidation, so a score change clears only what it touches.
  • Pre-warmed autoscaling, load tests at 3x expected peak, and live dashboards and alerts for every competition day.

Stack

AWS AppSync and Apollo Federation on ECS Fargate, Lambda, API Gateway, DynamoDB, Aurora PostgreSQL, ElastiCache Redis, Kinesis, SQS/SNS, EventBridge, CloudFront, S3, WAF, CloudWatch and X-Ray; Node.js/TypeScript, Python, AWS CDK, k6, GitHub Actions.

System design

Every source, whether an upstream feed or an official's upload, enters through one write path. Reads are served from caches and pushed live, so the databases see only a small share of traffic.

Every source enters through one write path; reads are served from caches and pushed liveRead pathWrite pathevery changefailed eventslive statereference dataresult commitsclears affected keys andpathscommitted changelive pushFeed adaptersLambda on EventBridgeschedules, ECS servicesOfficial uploadsAPI Gateway, CognitoKinesis Data Streamspartitioned by competitioneventNormaliserS3 audit logObject LockSQS dead-letter queueDynamoDBAurora PostgreSQLApollo Router on ECSFargatefederated GraphQLElastiCache RedisCloudFrontAWS AppSyncsubscriptionsEventBridge ruleClients

Write path

  1. Feed adapters: each of the 18 upstream APIs has its own adapter. Polled APIs run as Lambda functions on EventBridge schedules tuned to each provider's rate limits; streaming feeds run as small ECS services. Each adapter turns its feed into canonical events such as result updated, schedule changed or start list published.
  2. Ordered stream: canonical events go into Kinesis Data Streams, partitioned by competition event, so all updates to one final stay in order.
  3. Normaliser: consumers validate each event against the schema, drop duplicates by source and sequence number, and write it. Live state (current scores, rankings, start lists) goes to DynamoDB keyed by event; reference data (athletes, countries, venues, schedule) goes to Aurora PostgreSQL. Failed events go to an SQS dead-letter queue for replay.
  4. Official uploads: officials post scores through API Gateway, signed in with Cognito and checked against their role and venue. An upload becomes the same kind of canonical event on the same stream. Corrections carry a version and a reason, and every change is written to an S3 audit log with Object Lock, so it cannot be altered.

Read path

  1. Federated GraphQL: Apollo Router on ECS Fargate combines three subgraphs, each a Node.js service: Results (DynamoDB), Schedule and Venues (Aurora) and Athletes (Aurora). Public clients may send only persisted queries, identified by hash, so unknown or expensive queries are rejected; cost limits cap the rest.
  2. Caching: CloudFront caches persisted queries by hash, with a TTL of seconds for live data and hours for reference data. ElastiCache Redis holds resolved entities, and DataLoader batches lookups within each request.
  3. Invalidation: when a result commits, an EventBridge rule clears only the affected Redis keys and CloudFront paths, so one score change never empties the whole cache.
  4. Live push: each committed change is published to AWS AppSync subscriptions, a managed WebSocket service, on a channel per event. Clients watching a final get the update pushed, and AWS handles the fan-out to millions of connections.

Operations

  1. Capacity was scaled ahead of time from the competition calendar, before each session and final, rather than waiting for autoscaling to react. The system was load-tested at 3x expected peak. X-Ray traced requests end to end, CloudWatch alarms covered every stage, and WAF rate rules blocked scrapers.

Results

  • Peak load: 6.5M concurrent readers and 1,200 result updates a minute
  • Score upload to screen: under 2 seconds at p95
  • Availability: 99.99% across the 17 days, zero unplanned downtime
  • Cache hit rate: 96% of reads served without touching the database
  • Feeds unified: 18 upstream APIs behind one schema
Back to Work & Research