Cheat shared by Pašalić: every event should carry not only a global identifier and global order number but also a sequence number locally scoped to its aggregate. Combined with database constraints (e.g. PostgreSQL), this prevents events arriving out of sync from multiple instances of the write model. Knowing this up front avoids painful refactors later.