Event-sourced bank account on Axon Framework 5.4.2 + Spring Boot 4.1.1, with transcripts generated by tests and three reproduced JPA-store variants. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b69H5rTewUKPyhGS8r
17 lines
564 B
Plaintext
17 lines
564 B
Plaintext
# Lose the read model, replay the events, get it back
|
|
|
|
# Simulate a lost or corrupted read model: DELETE FROM account_balance (2 rows)
|
|
$ GET /accounts/acc-1
|
|
HTTP 404
|
|
events still in the store: 5
|
|
|
|
$ POST /admin/replay
|
|
HTTP 200 {"status":"replay started"}
|
|
|
|
# After the replay
|
|
$ GET /accounts/acc-1
|
|
HTTP 200 {"accountId":"acc-1","owner":"Asha","balance":380,"eventsApplied":3}
|
|
$ GET /accounts/acc-2
|
|
HTTP 200 {"accountId":"acc-2","owner":"Ravi","balance":40,"eventsApplied":2}
|
|
events in the store after the replay: 5 (a replay reads events, it never writes them)
|