System Design Atlas

Adaptive learning paths with verifiable recommendations

07 / 10Worked example

Critical flow

Concurrent devices preserve every attempt. Which conditions ensure the intended result?

Two answers target the same learning-state version.

Starting point A fixed exercise sequence is an explicit fallback.

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.

Two devices and projection

Two devices and projection

A and B are distinct attempts; both are preserved.

Device A
Learning API
Attempt log
Projection worker
Learning state
  1. 01 Device A → Learning APIAttempt A expected4
  2. 02 Learning API → Attempt logCommit A
  3. 03 Learning API → Attempt logCommit B
  4. 04 Attempt log → Projection workerA + B
  5. 05 Projection worker → Learning stateRecompute the losing update from the log

Result: Two attempts, one consistent newer projection.

Projection conflicts preserve every attempt.

Durably accept two distinct attempts. Their projections compete against version 4; recompute the losing update.

Commit, response loss and resumption

Learning-state version 4
Test both orders, A/B and B/A, as two devices update the learning state with expected version 4. One versioned update commits; the loser recomputes from the current log. Both distinct attempts are preserved.
V-50 assessed
Identical replay and a different answer under V-50: one assessment remains; changed replay produces a conflict.
P-50 with 10 tasks
7/8/9 correct answers → Not passed / Passed / Passed.

Concurrent devices preserve every attempt.

Concurrent devices preserve every attempt.

Accept attempts durably and update the projection with version checks.

Two answers target the same learning-state version.

A updates first; B rereads and includes both valid attempts. Reverse the order for the second test. Both attempts remain, and replay creates no duplicate learning progress.

Alternative considered
Deleting the losing attempt would lose a learning event.
Trade-off
The projection may briefly lag behind.
Reassess
High conflict rates justify serialization per person.

Try it yourself

Predict both projection orders.

A hint for your attempt

Two answers target the same learning-state version.

Compare with a possible solution
A first
A updates first; B rereads and includes both valid attempts.
B first
Reverse the order: both attempts remain, and replay creates no duplicate learning progress.

Apply to your project

What corresponds to “Concurrent devices preserve every attempt” in your own project?

Step 8: Click-through rate does not demonstrate any learning effect. What conditions ensure the result?