Dev.to
7/15/2026

The original title is "Building a Real Time Sports Scoring Engine with WebSockets and DynamoDB Streams"
Original: Building a Real Time Sports Scoring Engine with WebSockets and DynamoDB Streams
Short summary
A developer describes building Scoring AI, a voice-enabled real-time sports scoring app using DynamoDB for live match state and PostgreSQL for cold data. DynamoDB Streams decouple write events, with separate Lambda functions handling WebSocket broadcasts and archiving. The frontend scoring engine runs as a pure TypeScript module for instant feedback, supporting rally, sideout, tennis, and pickleball scoring structures with an eight-second match-point confirmation window.
- •DynamoDB for hot match state with optimistic locking; PostgreSQL for cold data via DynamoDB Streams
- •Decoupled Lambda consumers handle WebSocket broadcast and archival independently
- •Pure TypeScript frontend scoring engine eliminates round-trip latency for instant tap feedback
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



