Skip to content
Katabench
Try free

Record Events, Don't Send Them

Medium About 35 min Katabench Pro

The Order aggregate emails the customer from inside Ship and Deliver, so the domain depends on an SMTP adapter and the mail leaves before the order is saved. Let the aggregate record domain events and have the application publish them through a port after each save, exactly once, even when the same order is saved again.

The full brief is part of Katabench Pro

Pro opens this kata's brief, its starter code and its grader. To see how the track works first, try Config Is Infrastructure, which is free.

How it is graded

You work across multiple files, and architecture rules turn the design boundaries into executable feedback.

C# architecture exercises →

What it practices

Domain events
Aggregates record what happened and let the application decide how to react.

Related katas