System Design Atlas

Adaptive learning paths with verifiable recommendations

04 / 10Worked example

Interfaces

An answer remains stable under its identifier. What conditions ensure the result?

Network loss triggers retransmission.

Starting point Test peak load and concurrent devices separately.

Assumptions for the example case

A fictional voluntary practice course on fractions. A recommendation model suggests tasks; course completion follows a fixed assessment. Recommendations determine neither school grades nor access to education. All quantities, thresholds and operational targets in this design are illustrative assumptions.

Versioned recommendation

Versioned recommendation

Learning state v4Fixed projection version
Task catalogueVersioned
Recommendation modelVersioned
Lernstand v4 → Empfehlung E-50Bind state version
Aufgabenkatalog → Empfehlung E-50Bind task version
Empfehlungsmodell → Empfehlung E-50Bind model version
Recommendation E-50Replay returns the same combination

E-50 binds the learning state, task catalogue and model version; replay preserves that exact combination.

Learning state + catalogue + model → E-50. Replay preserves the same combination.

Proposed domain contracts

  1. POST/versuche/V-50

    Assess the answer and store the result durably.

    Input
    attemptKey, learner, taskId, taskVersion, answer, submittedAt
    Result
    Assessment with the rule version and a new learning-state version.
    Retry behaviour
    Identical replay returns the same result; a different answer under the same key produces a conflict.
  2. POST/empfehlungen

    Request a recommendation for a fixed learning state.

    Input
    recommendationKey, learnerStateVersion, taskCatalogVersion, modelVersion, excludedTasks
    Result
    E-50 with a task, reason and bound versions.
    Retry behaviour
    An identical call returns the same recommendation; a changed basis requires a new request.

An answer remains stable under its identifier.

An answer remains stable under its identifier.

attemptKey binds the answer and task version.

Network loss triggers retransmission.

Return the existing assessment. Changed content produces a conflict; the original is preserved.

Alternative considered
A different answer under the same key would overwrite the original evidence.
Trade-off
A new answer needs a new attempt.
Reassess
Corrections require authorised links to the original record.

Try it yourself

Compare an identical replay with a changed answer.

A hint for your attempt

Network loss triggers retransmission.

Compare with a possible solution
Replay
Return the existing assessment.
Change
Conflict; the original is preserved.

Apply to your project

What is the equivalent of “An answer remains stable under its identifier” in your own project?

Step 5: a correction replaces the previous effect traceably. Which conditions ensure the intended result?