System Design Atlas

Timed examination platform

02 / 10Worked example

Requirements

Which test checks the deadline?

A fast autosave and a uniquely recorded submission require separate evidence.

Starting point Compare receivedAt with closesAt.

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.

Requirements

Function, protection rule and operating target receive their own test cases.

Requirements (functional)

Further reading
Response protection
Save a versioned A-17 within the deadline and read back its confirmed state.
Completion
Users and workers generate exactly one E-17 from in_progress.

Quality goals (non-functional)

Further reading
Peak write rate
1,000 response writes/s with measured latency and conflict rate.
Deadline completion
Close overdue open attempts with measurable worker lag.

Terms in this step

Exactly one completion
submitted and auto_submitted are mutually exclusive.

Try it yourself

Evaluate receivedAt values of 5,400 and 5,401 seconds.

A hint for your attempt

The participant's deadline is inclusive.

Compare with a possible solution
5,400
User submission permitted.
5,401
Rejected user submission; Worker may close an open attempt.

Apply to your project

Define the limit for a 30-minute exam.

Next, calculate the assumed load.