Smart Refresh System
We don’t just blindly fetch data. Our Smart Refresh system optimizes for speed and relevance.How it Works
- On-Demand: When you click “Refresh Odds”, we trigger a real-time fetch from our providers.
- Parallel Processing: We fetch data for multiple games simultaneously (Parallel Fetching), reducing wait times by up to 5x.
- Diffing: We compare the new odds with our database and only update what has changed. This minimizes database load and speeds up the UI.
Refresh Rates
- Odds: Real-time (on refresh).
- Game Stats: Updated every 15 minutes during live games.
- Injury Reports: Updated hourly.
Stale Data Indicators
Transparency is key. We clearly indicate how fresh the data is.- < 5 mins old: ● Live (Green indicator)
- 5-15 mins old: ● Recent (Yellow indicator)
- > 15 mins old: ● Stale (Red indicator)
Parallel Fetching Architecture
To prevent timeouts and ensure fast updates, we use a Chunked Parallel Fetching strategy.- Instead of fetching games one-by-one, we fetch them in batches of 5.
- This allows us to update an entire league’s odds in seconds, even on heavy game days.