Event Sourcing: What properties should Domain Events have?

What problem is Event Enriching meant to solve?

Ok so what’s wrong with Enriching Events

Redundant Data

You can’t do Replay Testing

No Concurrency for Aggregates

Event Amount Total
TransactionAdded 50 50
TransactionAdded -20 30
TransactionAdded 10 40
Total 40
Event Amount Total
TransactionAdded 50 50
TransactionAdded! -20 30
TransactionAdded! 10 60
Total 60 // Should be 40
Event Amount
TransactionAdded 50
TransactionAdded -20
TransactionAdded 10
Total 40

Unfocused Events

Multiple events to prevent duplicating logic

Persisted Domain Events

--

--

--

I’m a Software Engineer based in Australia. I enjoy Type Safety, Functional Programming, Event Driven Systems and building good Team Culture. People first.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Open Policy Agent: What Is OPA and How It Works (Examples)

Energizing Customer Experience with Success Ops at GitLab

My first day of coding…

Engineering our Craft

Getting Faster and Leaner on Mobile: Optimizing Roblox with Vulkan

Configuring Magento2 using MAMP Server.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniel Little

Daniel Little

I’m a Software Engineer based in Australia. I enjoy Type Safety, Functional Programming, Event Driven Systems and building good Team Culture. People first.

More from Medium

The Architect, The Starter, and The Closer

The Different Software Architectural Patterns You Should Know About

A Technical Approach Document teardown

A tale on Software design