System Design Atlas

Timed examination platform

05 / 10Worked example

Data and states

Why does E-17 need its own identity?

The submission binds the last committed answer revision.

Starting point Distinguish the attempt from its completion record.

Assumptions for the example case

Illustrative design: 50,000 attempts per day, 10,000 simultaneous starts, a 90-minute duration, autosave every 10 seconds and a peak of 1,000 answer writes/s. This gives at most 540 save opportunities per attempt open for the full duration; actual writes depend on changes and batching.

Data and state model

V-17 carries version, deadline and exactly one E-17.

States

ObjectTransitionProtection
V-17in_progress → submitted | auto_submittedonly one terminating branch
A-17Revision 0 → nOnly when the V-17 version matches
E-17is produced oncebinds response revision and closure type

V-17

Transition
in_progress → submitted | auto_submitted
Protection
only one terminating branch

A-17

Transition
Revision 0 → n
Protection
Only when the V-17 version matches

E-17

Transition
is produced once
Protection
binds response revision and closure type

Terms in this step

Terminal transition
Autosave cannot reopen a completed attempt.

Try it yourself

Name the data that E-17 must record.

A hint for your attempt

Version, response and time.

Compare with a possible solution
E-17
V-17, R-3, answer revision, completion type and commit timestamp.
Concurrency record
The expected and new attempt versions and the actor executing the command remain traceable.

Apply to your project

Apply this completion record to a job application submission.

The runtime architecture assigns participant and worker commits to processes.