KatInterview

Shared Task Board with Live Sync: Architecture Walkthrough

System DesignModel answer
MediumModel answerSystem Designsystem-designreal-time-syncconcurrency

Last updated

Design a backend for team task lists where members add, assign, schedule, reorder and complete items, with changes appearing live across web and mobile and surviving offline use.

Design the backend for a shared task-list product. Teammates create lists together, then add, edit, assign, schedule, reorder, and complete tasks. Everyone with the list open should see changes appear almost immediately, on both web and mobile.

Required capabilities

  • Create a list and share it with other people.
  • Add and edit tasks.
  • Assign a task to a person and set a due date.
  • Reorder tasks within a list.
  • Mark tasks done or not done.
  • Show other collaborators' changes live.

Scale and constraints

  • Millions of registered users, with tens of thousands of people active at the same moment.
  • Most lists hold tens to low hundreds of tasks. A small number of "hot" lists have many simultaneous editors.
  • Soft latency goal: a change made by one connected user is visible to another connected user in roughly 500 ms or less.
  • Mobile clients drop offline or have flaky connections.
  • No silent data loss, and shared workspaces need an auditable record of who changed what.
  • Offline editing, notifications, and comments are nice-to-haves if time allows. Core CRUD, live sync, and permissions are mandatory.

What to cover in your answer

  1. Clarifying questions you would ask and the assumptions you pick.
  2. Data model and partitioning.
  3. APIs and the read and write paths.
  4. Live synchronization, including reconnect and catch-up.
  5. How concurrent edits and reordering converge.
  6. Permission model.
  7. Consistency trade-offs, scaling, reliability, and the metrics you would monitor.

Hints

Hint 1

Decide the granularity of conflict resolution first: whole task, individual field, or characters inside a description. Most of the design follows from that choice.

Hint 2

Give each list a monotonically increasing version or sequence number. A single ordered log per list makes live push, resume-after-disconnect, and audit history all the same mechanism.

Hint 3

Reordering is the tricky conflict. Think about positions that can be inserted between two neighbors without renumbering everything, such as fractional keys, and what happens when two users pick the same slot.

Hint 4

Separate the durable write (transaction that updates state and appends to the log) from fan-out (publish after commit via an outbox), and make mutations idempotent with client-generated IDs.