OTTO Sport AI · 2021 – 2026 · Technical owner
League scheduling engine
The engine that assigned every game in a league to a date, time, and field with conflict checks, on a youth sports platform of 50+ independently deployed microservices.
- Problem
League admins told us building a season schedule by hand took days. A single grouping could hold thousands of games, and each one needed a date, time, and field that fit the league's settings, such as games per team, time windows, game length, field lights, and coach conflicts, without double-booking anyone.
- My role
I worked on the original engine, then designed and owned the improved version. I ran the technical discussions, split the approved design into tickets for 2 to 3 engineers, reviewed their pull requests, and walked them through the business decisions and architecture.
- 5 minute slots
The old engine placed games minute by minute, back to back, so a 1:00 to 2:00 game was followed by 2:01 to 3:01. I proposed moving to 5 minute slots, 288 in a day, and talked it through with product owners. A 60 minute game now just needs the first 12 open slots in a row inside the time window the admin picks. That made placement much faster, gave cleaner start times, and made a switch to 30 minute increments a small change. The platform then moved all game creation to 5 minute increments.
- Background jobs
Ran each grouping as its own Bull job on Redis instead of holding up the frontend. Admins kept using the platform while a schedule generated, jobs could be retried, and the app could check each job's status. It also made room for a product request to let admins preview the matchups before creating the schedule.
- Matchups
Redesigned the existing round robin matchup generator with the Strategy pattern so linked and unlinked groupings shared one flow.
- Result
Admins went from days of building schedules by hand to minutes. Generation dropped from 30+ seconds to about 5 on 1,000+ game stress tests, and rebuilding the legacy V1 features in V3 helped move the last 3 large clients off V1.
- Looking back
Game creation reused an existing function that also created events, referee templates, and game history entries. We were on a MongoDB version without transactions, so a failed run was cleaned up by its instruction ID, and that cleanup could fail too. If I did it again, I would split game creation out first. It would have been faster to build and change, faster at generating schedules, and a lot less bulky.


