Skip to content
Axelerant/Work/White-Labeled Engagement
AxelerantWhite-Labeled Engagement
Case Study · sports entertainment

Engineering a real-time betting platform for performance, resilience, and growth

A cloud-native transformation built for scale

01

About the customer

A next-generation fantasy gaming and betting platform serving users across global markets in real time. Built to operate under the intense pressure of live sporting events, the platform delivers market updates, transactional APIs, and analytics with millisecond precision. The business runs on velocity and scale, where user trust is deeply tied to application reliability and speed during peak concurrency.

20,000+ concurrent live markets. 3,000+ concurrent bettors. 250+ concurrent agents.

On-brand editorial illustration: concurrent market data streams converging into a central pricing engine with millisecond-latency routing across global nodes
02
The challenge

The challenge

01 / 06

API latency and infrastructure load

  • Unpredictable spikes during sports events led to latency above acceptable thresholds (P99 > 2s), compromising core user workflows.
  • Backend throughput plateaued at ~140 RPS, blocking user scale and stressing transactional endpoints.
  • Database-level deadlocks triggered cascading service outages due to unbounded query payloads.
02 / 06

Streaming system bottlenecks

  • Python-based independent streaming processes created memory bloat, CPU exhaustion, and deployment friction.
  • Markets often failed to update in time, especially when supporting 20K+ market live feeds.
03 / 06

Platform fragility and incident recovery gaps

  • Service-wide outages were triggered by silent proxy bypass, logging overloads, and lack of monitoring guardrails.
  • Operational runbooks and observability pipelines were insufficient for root-cause analysis.
04 / 06

Multi-level data aggregation failure

  • Dashboard APIs triggered recursive joins across user hierarchies, causing long query times and data inconsistencies.
  • Real-time visibility into betting PnL was inconsistent and unstable.
05 / 06

Delivery model constraints

  • Feature delivery was unpredictable post-MVP due to siloed responsibilities and backend/frontend misalignment.
  • Rework and missed expectations increased due to late integration and fragmented QA cycles.
06 / 06

Experience bottlenecks on login

  • The platform's first-touch user flow suffered from large bundle sizes, long FCP/LCP, and blocking tasks.
  • Lighthouse scores dropped below 70, impacting SEO and user retention.
03
The solution

The solution

Axelerant deployed a comprehensive engineering-first transformation, re-architecting core services, infrastructure, and team workflows.

01 / 08

Cloud-native platform with Kubernetes and Go

  • Built a fully containerized platform on Kubernetes with namespaced isolation, pod-level scaling, and GitOps workflows via ArgoCD and Helm.
  • Rewrote Python services in Go, cutting CPU usage from 6-8 cores to under 1 core and memory from 16 GB to under 500 MB per pod.
  • Added Redis ElastiCache, PostgreSQL with failover, and Kafka with persistent topics for real-time message streams.
  • Enhanced autoscaling logic via Karpenter and PerfectScale; enabled observability using OpenTelemetry.
02 / 08

Streaming rewrite for 15x efficiency

  • Replaced fragmented Python processes with a unified Go service using goroutines and persistent WebSocket connections.
  • Reduced memory usage from 6 GB to 150 MB and CPU from 2.5 cores to 0.1 core.
  • Added configurable goroutine pools, message queue backpressure controls, and fault isolation mechanisms.
  • Introduced streaming observability with Prometheus, Loki, and custom Grafana dashboards.
03 / 08

Database deadlock mitigation and recovery engineering

  • Applied query payload governance, setting upper bounds on joins, subqueries, and sort parameters.
  • Added retry-safe transactional workflows and async processors for slow writes.
  • Designed incident recovery playbooks with pinned session flushing, log pruning, and failover management.
04 / 08

Multi-account AWS Control Tower setup

  • Transitioned to an AWS Control Tower model, segmenting dev, staging, and production environments.
  • Integrated Google Workspace with AWS SSO to manage role-based access across developer, product, and quality teams.
  • Applied SCPs, CloudTrail, and VPC Flow Logs to enforce security compliance.
  • Set up Tailscale VPN routing and API firewalling for restricted services.
05 / 08

Feature-first engineering model

  • Formed stable team pods around modular components like user management, configuration, and payouts.
  • Shifted to API-first design: frontend and QA teams worked with mocked contracts before backend merges.
  • Eliminated partial testing: a component entered QA only when fully integrated.
  • Each sprint included demo-ready components with working frontend-backend logic.
06 / 08

Load testing and continuous performance loops

  • Built load-testing pipelines using k6 to simulate more than 2,000 concurrent bettors across a large set of market types.
  • Detected bottlenecks in transactional APIs with 19s response times; reduced to under 250ms via query profiling and caching.
  • Instrumented latency and error budgets across critical endpoints using P95/P99 metrics and OpenTelemetry.
  • Enabled real-time autoscaling tied to event rate and request patterns.
07 / 08

PnL aggregation with Kafka and Go

  • Replaced synchronous, recursive dashboard queries with an event-driven architecture using Kafka and Go.
  • Implemented durable, Redis-backed event processing with pre-aggregation on key actions (bets placed, odds updated, user hierarchy changes) using hierarchical sync queues and DLQ processors.
  • Dashboard load times dropped from 6-8s to sub-1s, even under high traffic.
08 / 08

Login performance overhaul

  • Lighthouse scores increased to 99, FCP dropped from 14.5s to 4.97s, and long tasks were eliminated.
  • Refactored UI structure for accessibility, speed, and better LCP distribution.
04
The result

The result

Operational outcomes
01

89.13% API latency reduction

  • Before: P99 latencies for key APIs exceeded 2.3s, with backend throughput capped around 140 RPS.
  • After: optimized service orchestration, query design, and caching pushed P99 below 250ms, and throughput increased to 560+ RPS, confirmed under controlled load.
02

40x streaming memory efficiency

  • Rewriting from Python to Go reduced the memory per process from 6 GB to 150 MB.
  • Consolidation into a single streaming connection removed fragmentation, enabling scale to 20K concurrent feeds.
03

57% faster login loads

  • Login bundle shrank from 258 kB to 115 kB after replacing AntD with Panda CSS and Formik.
  • Lighthouse score improved from 86 to 99.
  • FCP/LCP dropped from 14.5s to 4.97s, eliminating all blocking tasks and improving SEO as well as UX.
04

80% drop in incident frequency during peak events

  • Payload governance, structured logging, and runbooks with automated flushing reduced production incident rates by over 80% during high-traffic sporting events.
  • Prior to this, oversized payloads and logging surges frequently caused cascading failures across services.
05

Sub-second aggregated PnL dashboard loads

  • Admin dashboards that previously took 6-8s to compute nested user earnings now load in under 250ms via pre-computed cache layers.
  • Kafka-driven pre-aggregation reduced DB load and allowed real-time updates across dynamically changing user hierarchies.
06

Delivery velocity and predictability improved

  • Every sprint now ends with frontend-ready, QA-verified component demos, increasing delivery confidence and enabling better stakeholder alignment.
  • Integration rework and QA triage efforts dropped significantly as API-first planning and cross-functional pods took full ownership.
05

Project highlights

01 / 04

Sub-second API latencies at scale

Axelerant introduced structured performance profiling, rewrote core backend services in Go, and optimized database access with targeted indexing and payload decoupling. Backend throughput scaled from 140 RPS to 560+ RPS, validated under live load simulations. Key transactional endpoints (market transactions, odds fetch) were reduced from 2.3s P99 latency to under 250ms. Multiple layers of latency mitigation were applied, including caching of hierarchical lookups and compression of API payloads.

02 / 04

Streaming rewrite for platform stability

The streaming system was completely rebuilt in Go with a single persistent WebSocket connection and goroutine-based handlers for each market stream. Memory dropped from 6 GB to 150 MB, and CPU usage from 2.5 cores to 0.1 core per pod. The platform now supports 20,000+ concurrent live markets with no dropped connections or missed updates, even under active load. Built-in metrics expose internal state (queue lag, message time skew) for proactive recovery.

03 / 04

AWS governance with Control Tower

The platform's infrastructure was migrated into a multi-account, highly governed AWS setup. Development, production, logging, and shared services were fully isolated. Centralized logging, role-based access, and policy guardrails reduced surface area and improved operational clarity. Account-specific billing and tagging improved cost attribution per environment and per service. Guardrails like AWS Config and CloudTrail were activated organization-wide for compliance enforcement.

04 / 04

Event-driven aggregation for real-time dashboards

The legacy synchronous aggregation architecture was replaced with a Kafka-based event pipeline. Users, bonuses, and referral earnings are now pre-aggregated in real time and stored in durable Redis snapshots. Dashboard queries became lightweight reads instead of heavy nested joins. A live hierarchy sync mechanism was built to automatically propagate structural changes (user level changes, new agents). Admin dashboards now load in under a second, even with over 250 concurrent agents and thousands of downstream users querying simultaneously.

Talk to Foyer · grounded in this engagement

Ask anything about how we ran White-Labeled Engagement - or what it would look like for you.

Foyer is grounded in our own playbooks and the named work behind this record. Go deep on the methodology, the decisions, the team shape - or bring your own problem statement, use case, or intent and we'll talk it through against sports-entertainment engagements.

Start a conversation
Streams live · grounded in named work
Or jump in with one of these
Brief us · A situation like White-Labeled Engagement

Have a similar shape on your plate? We'll come back with how we'd run yours.

The White-Labeled Engagement engagement moved operational metric moved. If your situation rhymes, send us the brief and a named delivery lead will respond inside one business day.

Brief form · Engagement

A short brief. A named partner replies within one business day.

Six quick fields. Nothing you would not tell a colleague in a hallway.

Replied to by a named partner within one business day.