How this repository represents a user account and records who changed it ... and why one transaction is not enough for that. Concrete code: UnitOfWork with a savepoint, an outbox with an idempotent handler, and a table of the three windows where it can go wrong.