Applying distributed systems thinking to a pickleball league
Schedules, attendance, conflicting reports, and the surprisingly difficult question of what the score actually was.
Tinkering
The itch
A recreational league is a small operations system. Players need schedules, courts need assignments, scores need recording, and rankings need to reflect what actually happened. Humans are substantially less predictable than Kubernetes pods.
The interesting part is what happens when the information arrives late, disagrees, or needs correcting.
The experiment
The score-tracker code supports individual and team leagues, schedule imports, attendance, score submissions, and leaderboards. Its architecture separates an Astro interface with React islands from a Go API backed by PostgreSQL. A pickleball application and its database are also running in the home cluster; that observation alone does not establish which local revision is deployed.
The wider league-automation repository covers additional operations through Google Apps Script, Python services, Slack integrations, and Shopify workflows. Those are related tools rather than proof that every league workflow is one integrated application.
The architecture
Schedule and roster imports → league, session, court, and match records
Player reports → score submissions
Score reconciliation → pending, disputed, or official score
Official results → leaderboard
Attendance → participation context
That distinction between a report and an official result is the useful part. Someone entering a score does not automatically make it the score.
Where disagreement becomes a state
In the current Go implementation, a single submission produces a pending result. Multiple submissions without an agreeing pair produce a disputed result. Two distinct submitters reporting the same score can make it official.
That is an application rule, not a formal distributed-consensus algorithm. It also does not guarantee that both opposing teams agreed: the current grouping counts distinct submitters, not opposing sides.
Attendance affects individual standings, and individual rankings use official scores. Team standings have a separate statistics path. Collapsing those rules into one generic “leaderboard” would hide decisions that matter to the players.
The next experiment
Exercise corrections and disagreements explicitly: repeated submissions, multiple agreeing groups, changed attendance, and a corrected official score. Decide how each case should affect rankings and what explanation an organizer needs to give a player.
The repository includes focused tests for score validation, tied rankings, and rotation imports. Those tests are useful evidence of specific rules, not a substitute for checking the full league workflow.
The takeaway
Human systems need visible uncertainty and a way to correct the record. “Pending” and “disputed” are useful product states. Pretending every report is immediately authoritative would make the software simpler and the league harder to run.