All Tasks
Buildadvanced
70 min

Add Domain Events + Outbox Pattern

Refactor OrderFlow so that `order.Confirm()` raises an `OrderConfirmedEvent`. Create three handlers: send a confirmation email (mock), reduce stock, and write an audit log entry. Then implement the Outbox Pattern: serialise events into an OutboxMessages table inside the same transaction, and build an OutboxProcessorWorker that dispatches them with retry.

Your progress0%

Requirements

Skills you'll use

.NETDomain EventsMediatROutbox PatternEF Core

Read this first

This task is based on the lesson below. Complete the reading before attempting it.

Go to lesson

What to expect

Difficulty
advanced
Time
70 min
Steps
6
Type
Build