SpinTheMic
Pro

Interview practice question

Testing an event-sourced aggregate

Backend Engineering · Testing · Experienced

How would you test business logic in an event-sourced system?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Given past events, when command, then new events.
  • No database needed for logic tests.
  • Test invariants and rejected commands.
  • Projection tests: events in, read model out.
  • Upcasting tests for old event versions.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics