About the client
The client operates in premium live sports analytics and serves cricket fans with a mobile companion covering major international and franchise competitions. FiftyFive was its full-cycle development partner for the MVP; the client retains product ownership and operations.
One low-latency stream from two very different data feeds
- Two feed formats. One provider was polled over REST; the other pushed XML through webhooks. Both had to become one consistent event stream.
- Out-of-order events. Ball events and scorecards arrived asynchronously and had to be reconciled into a coherent match timeline without stalling on missing data.
- Incomplete deliveries. Ball data needed pitch coordinates before it could reach devices, or pitch maps and wagon wheels would render wrongly.
- Many concurrent fans. Live match streams had to stay persistent and stable under load.
- Sponsors and code structure. Sponsor boards needed field-position mapping with conflict detection, and the Flutter code had to stay modular across six app packages.
What FiftyFive built
A six-person FiftyFive team built and handed over a four-component MVP: a Flutter mobile app, a Node.js API server, a real-time ingestion service and a Next.js admin CMS, deployed on AWS.
How the solution works
Ingestion and normalisation
- A Node.js and TypeScript ingestion service uses BullMQ for job processing, polls one provider every two seconds and receives the other's webhook events.
- Both feeds are mapped into a single, provider-independent timeline schema.
- Ball events and scorecards are coordinated with provisional updates, a 10-second enrichment window and a cached-score fallback.
- A gating step holds each ball delivery until pitch coordinates are added and validated, then publishes it.
Streaming API
- The Node.js API exposes REST and Server-Sent Events endpoints, with three SSE stream modes per match.
- Redis pub/sub decouples ingestion from the API so live delivery stays stable, Supabase provides data services and Firebase Cloud Messaging sends notifications.
Mobile app
- The Flutter app uses Riverpod for state and GoRouter for navigation, organised as shared local packages across six app packages.
- It renders live match state, pitch maps, wagon wheels, scorecards, charts and notifications.
Admin CMS and sponsors
- A Next.js CMS manages matches, tournaments, players, teams, venues and sponsors, shows live user counts and controls sponsor-board placement with field-position conflict detection.
Cloud and delivery
- Services run with Docker Compose on Amazon EC2 in a South Asian AWS region, with ECR, CodeBuild and CodeDeploy for containerised CI/CD and Secrets Manager for configuration.
Technology stack
What the solution enabled
Business transformation
MVP components handed over
Live feeds, one event model
SSE stream modes per match
Four MVP components
— mobile app, API server, ingestion service and admin CMS — integrated and handed over.
Two live data feeds
Unified into one provider-independent event model.
Three SSE stream modes per match
For live delivery.
All core features complete
Across development, QA and UAT: ball events, score updates, pitch maps, wagon wheels, charts, notifications and sponsor controls.
Technical questions
How do you merge two live sports data feeds into one stream?
FiftyFive Technologies mapped a REST-polled feed and an XML webhook feed into a single, provider-independent timeline schema. Ball events and scorecards are reconciled with provisional updates, a 10-second enrichment window and a cached-score fallback, and each delivery is held until pitch coordinates are added, so the app always receives one consistent, complete stream.