Preparing your design workspace

Loading the problem and your saved attempt…

Design a Concurrent Sports Roster Service

Model player CRUD, team roster membership, and exact rostered-player counts under concurrent transfers, lifecycle changes, and reads.

Design the low-level object model and contracts for a sports management service that supports player CRUD and player-count tracking under concurrent access. For this exercise, assume the service manages teams in one league.

A player has a stable identity and profile; lifecycle status is enabled, deactivated, or deleted. An enabled player may be unrostered or rostered on exactly one team.

Team and league player counts mean rostered enabled players: assignment increments one team and the league count, transfer moves one team count without changing the league count, and roster removal decrements both counts while leaving the player enabled and unrostered. Deactivation requires an unrostered player.

Soft deletion requires an already deactivated, unrostered player, retains a tombstone, and never reuses the identity. Creates and command retries use stable request identities; stale edits and competing roster changes have explicit outcomes.

Provide a design-only artifact that explains state ownership, interfaces, synchronization, ordered interactions, and testability. Scheduling, game statistics, contracts, payroll, persistence technology, and cross-league transfers are outside scope.