System Design Atlas

Adaptive learning paths with verifiable recommendations

06 / 10Worked example

The overall architecture

Learning continues when the model fails. Which conditions ensure the intended result?

The recommendation worker may be unavailable.

Starting point The correction event references the assessment.

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.

Projection and recommendation workers

Projection and recommendation workers

Learning interfaceAttempt + assessment
Learning APIIngestion + final assessment
Attempt logImmutable attempts
Relational learning-state storeProjection + E-50
Projection workerRecompute state
Recommendation workerModel or fallback
Task catalogueVersioned
Learning interface → Learning APIAttempt / assessment
Learning API → Attempt logCommitted attempt
Learning API → Relational learning-state storeAssessment + state
Attempt log → Projection workerNew attempts
Projection worker → Relational learning-state storeNewer projection version
Relational learning-state store → Recommendation workerFixed state
Task catalogue → Recommendation workerCatalogue version
Recommendation worker → Relational learning-state storeE-50

Both attempts are logged first. Recompute the projection after a concurrency conflict. Assessment remains an API module with a fixed rule.

API, attempt log and state store; two workers; final assessment within the API; external task catalogue.

Responsibilities within the application

Learning API modules

Attempt recordingPreserves the answer and assessment version
Learning-state projectionDerives an explainable practice state
RecommendationSelects suitable next tasks
Final assessmentAssesses independently of the model
Versuchserfassung → LernstandsprojektionCommitted attempt
Lernstandsprojektion → EmpfehlungFixed learning state
Versuchserfassung → AbschlussprüfungAssessment answers

Attempt recording, projection, recommendation and assessment have separate domain responsibilities.

Internal modules: attempt recording preserves answers and assessment versions; learning-state projection derives an explainable practice state; recommendation selects suitable next tasks; final assessment evaluates independently of the recommendation model. The overall architecture maps these responsibilities to runtime processes and datastores.

Runtime components and authoritative data

Runtime boundary
Learning interface → Learning API → Attempt log and relational state. The projection worker processes committed attempts. The recommendation worker reads a fixed learning state and versioned task catalogue, then writes recommendations. Final assessment is a separate API module using fixed assessment rules rather than the model score.
Module responsibilities
Attempt recording preserves answers and assessment versions. Learning-state projection derives an explainable practice state. Recommendation selects suitable next tasks. Final assessment evaluates independently of the recommendation model.

Learning continues when the model fails.

Learning continues when the model fails.

A fixed exercise sequence is an explicit fallback.

The recommendation worker may be unavailable.

Provide a fixed sequence and label it as such. Fixed rules continue to run; 8 correct answers are sufficient to pass.

Alternative considered
Making assessment depend on the model would block course completion during model failure.
Trade-off
The fallback is less personalised.
Reassess
Measured usage helps assess its benefit.

Try it yourself

Explain the fallback and final assessment during a model outage.

A hint for your attempt

The recommendation worker may be unavailable.

Compare with a possible solution
Exercise
Provide a fixed exercise sequence and label it as such.
Validation
The fixed rules continue to apply; 8 correct answers are sufficient to pass.

Apply to your project

What corresponds to “Learning continues when the model fails” in your own project?

Step 7: concurrent devices preserve every attempt. Which conditions ensure the intended result?