Design a Ticket Context and System Status Platform
Design a high-concurrency service that connects a support ticket to related user tickets and the affected system's historical status.
Problem statement
For this exercise, assume a support agent opens one ticket and receives its affected system, that system's status over the ticket's issue interval, and a bounded page of the same user's recent related tickets.
Related tickets share a stable user identity, are limited to the previous 90 days, and are returned newest first with cursor pagination. Each ticket records an inclusive issue-start and exclusive issue-end; an unresolved issue has no end yet.
System status is a revisioned historical timeline, and the context response includes every effective status segment that overlaps the issue interval. Ticket edits use optimistic versions, and status-history corrections must remain auditable. Exclude ticket assignment, messaging, and automated incident detection.
What to build
- An authorized client can create or version-update a ticket with its user, affected system, issue interval, and explicit state.
- An authorized status producer can append or correct a system's effective status timeline without erasing prior audit history.
- A support agent can retrieve one ticket, a cursor-paginated page of the user's related tickets from the previous 90 days, and the effective system-status segments overlapping the issue interval.
- An authorized operator can trace which ticket and status revisions produced a context response and reconcile stale derived views.
At scale
- For this exercise, assume 50 million retained tickets and 100,000 affected systems.
- For this exercise, assume peaks of 10,000 ticket or status writes per second and 50,000 context reads per second, with a fivefold burst concentrated on systems involved in a major incident.
- For this exercise, target 300 milliseconds p95 for context reads and five seconds p95 from an accepted status update to visibility in new context responses.
- For this exercise, retain ticket and status revision history for two years, and do not lose an accepted revision after one availability-zone failure.