Product Updates2 min read

Why live scoring updates in seconds, not minutes

A goal goes in, and your phone knows before the replay ends. Here is what happens in the eight seconds between the net bulging and your points changing.

Tom Reyes

Tom Reyes

Product Lead ·

Product Updates cover: Why live scoring updates in seconds, not minutes

Live scoring used to mean refreshing a page every few minutes and arguing about whether the assist had been given yet. Rosterly updates a matchup within seconds of the event, and it keeps the number honest when the officials change their minds.

From the pitch to your phone

  1. A match event arrives from our data feed: a goal, an assist, a save, a card, a substitution.
  2. The scoring engine applies your league's own rules to it. Two leagues can score the same goal differently, and both are right.
  3. Every affected matchup is recalculated, including the projected final score.
  4. The change is pushed to everyone watching that matchup, with the event that caused it.

Step two is the one people underestimate. A league that gives a point for every two key passes needs those passes counted as they happen, not tallied after the final whistle, so the engine keeps a running state for every player in every match.

One rule, written once

Every league's scoring is a small table of events and points. The engine reads it rather than hard-coding anything, which is why a commissioner can change a rule mid-season and every past gameweek recalculates with it.

scoring/pointsFor.tsTypeScript
{
  "teams": 10,
  "draft": "snake",
  "tradeApproval": "review-24h",
  "inactiveTeams": "auto-lineup",
  "playoffs": { "teams": 6, "startGameweek": 32 },
  "waivers": "rolling"
}

When the officials change their minds

Goals get reassigned. Assists get taken away the next morning. A live number that never corrects is wrong, and one that corrects silently feels like a bug. So every correction arrives as its own event, with a reason, and the matchup shows a small note: "Assist removed after review, −3."

A score that moves without explanation feels like a bug. A score that moves with a reason feels like football.

Why not every second?

We could push a projection update every second of every match. It would drain your battery to tell you that a 0–0 is still 0–0. Rosterly pushes on events, and the projection between them is drawn on your device, so the bar creeps forward without a network request.

ProductLive ScoringEngineering
Tom Reyes

Written by

Tom Reyes

Product Lead

Tom runs the draft room and live scoring teams, and has lost his own league final three years running.

More posts by Tom Reyes

Keep reading

All posts →