StreamLayer
CTO · Led 8+ Engineers
Aug 2018 — 2025 · Fractional CTO from 2025
Real-time interactive platform for live sports streaming. CTO for 7 years, leading 8+ engineers across 100+ repositories. The entire backend runs on Microfleet — the framework I built at Makeomatic — proving it at massive scale. Proto-first API design with 234 proto versions generating code for 7 target platforms.
Architecture
gRPC Gateway → AMQP Microservices
CoreSingle gRPC entry point (sl-grpc-proxy) terminates all SDK client connections and fans out to 20+ backend microservices via RabbitMQ AMQP. Handles JWT auth, geo-IP, rate limiting, and connection management. Designed for 1M+ concurrent with 2x scale-up in under 3 minutes.
Proto-First Design
Central proto repository (v5.234.1) is the single source of truth for all API contracts. Buf-managed codegen outputs to 7 targets: Swift, Java/Kotlin, TypeScript (ES modules + nice-grpc), Go, Python, JSON Schemas, and auto-generated docs. 26 proto domains covering analytics, chat, sports, interactive, triggers, and more.
Microfleet-Powered Backend
Every backend service uses Microfleet plugins: AMQP transport, hapi HTTP, Redis Sentinel, Prometheus metrics, OpenTracing, distributed locking, JSON Schema validation. Consistent plugin composition across all services — new engineers onboard in days, not weeks. Services deployed via Helm charts on GKE with Istio service mesh.
Service Domains
Sports Data
6 real-time data adapters: Sportradar, Betgenius, SimpleBet, BetMGM, SportsData.io, NFL. Event sync, game matching engine, and prediction features from live feeds.
Analytics Engine
ClickHouse OLAP backend with custom adapter. Cluster-wide aggregate peak of billions events/second. Powers contextual VAST ad insertion and interactive overlays synchronized to live broadcasts.
Interactive Engagement
Polls and gamification (OpenAI-powered auto-generated questions), event triggers with BullMQ, delayed promotions. Real-time audience interaction tied to in-game moments.
Communication
Chat auth (MongoDB + RethinkDB), Twilio-powered voice, Tinode chat management, content moderation (sl-censor), push notifications via APNs + Firebase.
AI Platform
9 specialized AI agents with Sense-Interpret-Act architecture on Temporal: event spotter, scorekeeper, floor manager, bookie interpreter, action planner, content composer, quality judge.
SDK Settings
Multi-tenant B2B: Organization → Stream → Client settings hierarchy. Stream Chat integration. JWT-based SDK initialization and configuration management.
Client SDKs
iOS
Swift, VIPER architecture. XcodeGen build system. iOS 13+ and tvOS 13+. CocoaPods + SPM distribution. SwiftLint, SwiftGen, Fastlane, Bitrise CI.
Android
Kotlin with modules: SDK core, ExoPlayer, Media3, Watch Party, TV, Firebase, Google PAL. Gradle KTS.
Web
Nx monorepo with Connect + gRPC-Web. Storybook for React UI components. Demo integrations: Next.js, Vite, webOS.
CTV & More
Roku (BrightScript), React Native (including new architecture), Fire TV, Apple TV, PlayStation, Xbox, Tizen, webOS.
Key Integrations
Masters
Multi-year Augusta National integration. 1M+ peak concurrent during tournament week. Template for all subsequent integrations.
FlagshipBetano
Group watch parties sustaining 1M+ peak concurrent across sporting markets.
1M+ concurrent