Learn to record business facts from an Aggregate Root and process them with TypeScript handlers. An order case explores tests, idempotency, post-save failures, and when to incorporate a Transactional Outbox.
Design a storage-independent OrderRepository and compare it with a DAO, an ORM, and an Application Service. Implement in-memory and SQLite adapters, retrieve complete Aggregates, and check saving, version conflicts, and rollback with executable tests.