Data Platform Architecture for Large International Sporting Events
This article presents a practical architecture for a data platform built for large international shooting events, where the competition window is short, concurrency is high, and the rules are strict. It covers a five-layer design, an append-only data model for the class-event-result relationship, a versioned and replayable rules engine, consistency strategies for live rankings and team aggregation, a recomputable quota settlement pipeline, and stability measures for peak-time distribution. Readers will find pseudo DDL, a sample rule definition, and aggregation code they can adapt.
1. Background and Problem Definition
International-level Para shooting events, such as World Cup series competitions, share a distinct profile: a short cycle, high concurrency, and strict rules. The competition window is usually compressed into 7 to 10 days, with participation reaching dozens of countries and regions and nearly three hundred athletes. The schedule is dense, with multiple events running in parallel on a single day. Athletes are grouped into competition classes based on their physical conditions (such as SH1 and SH2), events cover both pistol and rifle in individual and team formats, and result determination spans several layers of logic: qualification rounds, finals, and team score aggregation.
The quota dimension adds further complexity. These events are often tied directly to qualification for later large multi-sport games, so the outcome of one competition converts into participation slots for the next cycle. This means the data platform must not only record results but also calculate qualification, and that calculation must be traceable, auditable, and recomputable.
The traditional approach spreads schedules, results, and registration data across multiple spreadsheets and email threads, relies on manual consolidation during the event, and backfills data with scripts afterward. The consequences are inconsistent data definitions, confusion between team and individual results, quota settlements that cannot be recomputed, and service outages when media and public queries spike. This article addresses exactly these problems.
2. Layered Architecture
A five-layer structure is recommended, with each layer decoupled from the next through explicit data contracts.
- Collection layer: entry from venue terminals, confirmation from judge terminals, data ingestion from timing and scoring equipment, and integration with media and registration systems.
- Ingress and buffering layer: a unified gateway handles authentication and rate limiting, while a message queue absorbs peaks and guarantees ordering.
- Compute layer: a rules engine handles result validity checks and class validation, stream processing produces live rankings, and batch processing handles team aggregation and quota settlement.
- Storage layer: a relational database holds authoritative master data, object storage holds raw messages and image evidence, a cache serves hot leaderboards, and a search engine supports multi-dimensional queries.
- Distribution layer: public result pages, data interfaces for media, dashboards for internal use, and a monitoring and alerting system.
Venue terminals / timing equipment│ (signed messages)▼Ingress gateway ──► Message queue (partitioned by event for ordering)│┌───────────┼────────────┐▼ ▼ ▼Stream compute Rules engine Raw message archive (object storage)│ │▼ ▼Hot cache Authoritative RDBMS ──► Batch (team/quota) ──► External APIs/dashboards
3. Data Model: Getting the Class-Event-Result Relationship Right
The key to data modeling is not the number of fields but whether constraints can be expressed clearly. The core entities should include athlete, competition class, event, round (qualification or final), result record, team, and quota pool.
Three modeling principles deserve particular emphasis.
First, every result record must carry three parts: the raw value, the normalized value, and the judgment status. The raw value comes from the equipment, the normalized value is used for cross-event comparison, and the status distinguishes valid, invalid, under appeal, and revised. Any overwrite operation appends a new version; nothing is physically deleted.
Second, team results are not stored as independent facts but derived from individual results according to team and event rules. This avoids the classic inconsistency where an individual result changes but the team result does not.
Third, quota is a first-class entity in its own right, bound to the event station, event, slot count, and acquisition method (direct allocation, regional slots, and so on), with a many-to-many relationship to athletes so that later recomputation is supported.
Illustrative table constraints (pseudo DDL):
-- Result record: append-only, never overwrittenCREATE TABLE result_record (result_id BIGINT PRIMARY KEY,athlete_id BIGINT NOT NULL,event_id BIGINT NOT NULL,class_code VARCHAR(8) NOT NULL, -- competition class, e.g. SH1/SH2round_type VARCHAR(16) NOT NULL, -- qualification/finalraw_value DECIMAL(10,3) NOT NULL,normalized_val DECIMAL(10,3) NOT NULL,status VARCHAR(16) NOT NULL, -- VALID/INVALID/APPEAL/REVISEDversion INT NOT NULL,UNIQUE (result_id, version));-- Quota: independent entity, supports recomputationCREATE TABLE quota_allocation (quota_id BIGINT PRIMARY KEY,station_id BIGINT NOT NULL, -- event stationevent_id BIGINT NOT NULL,quota_type VARCHAR(32) NOT NULL, -- direct allocation/regional slottotal_num INT NOT NULL,athlete_id BIGINT,settled_at TIMESTAMP);
4. Rules Engine: Making Decisions Configurable and Traceable
Class eligibility validation, result validity determination, tie handling, and the aggregation basis for team results all belong to the category of logic that changes frequently and must not be hard-coded. Rules should be abstracted into condition-action pairs, delivered as configuration, and managed with versioning.
A simplified rule expression example:
{"rule_id": "class_eligibility_check","version": 3,"when": {"athlete.class_code": "SH2","event.allowed_class": ["SH2"]},"then": { "action": "REJECT", "reason": "CLASS_MISMATCH" }}
The engineering priorities in rule execution are idempotence and explainability. Repeated delivery of the same result must not produce duplicate rankings, and every decision outputs the matched rule ID and version number into an audit log. When an appeal arises, replaying the decision process for that result under the specified rule version reproduces exactly the same conclusion as during the event, a capability no manual consolidation approach can offer.
5. Consistency Guarantees for Live Rankings and Team Aggregation
The difficulty with live rankings is out-of-order arrival plus late corrections. Network jitter on devices and judge reviews that change decisions both cause data to arrive late. Two strategies apply.
The first is partition ordering. The message queue uses event plus round as the partition key, which guarantees ordered processing of results within the same event while different events run in parallel, balancing throughput and correctness.
The second is watermarks with rollback. The stream processing job sets a reasonable watermark delay; data arriving beyond the watermark enters a correction channel that triggers a partial leaderboard recomputation and publishes a new version number. The frontend always displays the leaderboard version, so users never see a mix of old and new data.
Team aggregation runs as a batch job after the competition segment ends. Its input is a snapshot of confirmed individual results, and its output is team rankings and team result details, with the two linked by snapshot ID so that every team result can be traced back to a specific version of an individual result.
# Team aggregation sketch: based on a confirmed snapshot, repeatable with identical resultsdef aggregate_team(snapshot_id, team_id, event_id):records = load_confirmed(snapshot_id, team_id, event_id)if not records:return Nonetotal = sum(r.normalized_val for r in records)return {"snapshot_id": snapshot_id,"team_id": team_id,"event_id": event_id,"team_total": round(total, 3),"members": [r.athlete_id for r in records]}
6. Quota Settlement: A Recomputable Path from Results to Qualification
Quota settlement should use a combination of three elements: a snapshot, idempotent jobs, and a settlement ledger. After the event, a result snapshot is generated; the settlement job reads the snapshot and the quota rules, produces allocation details, and writes them to the ledger. Re-running the same snapshot does not create a second allocation. The ledger records the source station, the underlying result, the execution time, and the rule version for every slot, so any dispute can be traced back along the chain.
One caution: cross-station qualification accumulation is prone to duplicate slot occupation, so a unique constraint and conflict detection should be applied at the athlete dimension, raising an explicit error during settlement rather than silently overwriting.
7. High-Concurrency Distribution and Stability Design
Traffic during the event is spiky, with public queries concentrated in the finals time slots. The following measures are recommended:
- Put read-heavy, write-light hot leaderboards in a cache, using both a short TTL and active invalidation;
- Pre-warm static schedule pages and event introduction pages before the competition period;
- Apply tiered rate limiting to external interfaces, with separate quotas for media and public interfaces so they do not crowd each other out;
- Archive raw messages and image evidence to object storage under a prefix convention organized by station and event, making audit and evidence retrieval straightforward;
- Set up monitoring and alerting with thresholds on result write latency, rule rejection rate, leaderboard version jumps, and interface error rates.
8. Implementation Roadmap and Common Pitfalls
A three-phase rollout is recommended. Phase one closes the loop on master data and result entry, unifying data definitions first. Phase two brings the rules engine and live leaderboards online. Phase three completes quota settlement and external data services.
Three pitfalls are common. The first is storing team results as independent data, which causes definitions to drift. The second is hard-coding rules in business logic, so every rule change requires a release. The third is neglecting late-arriving data, which leaves leaderboards inconsistent with final results after the event. Avoiding these three points produces a substantial improvement in both in-event stability and post-event auditability.
