Course of Issues with DDD: Error Handling in Domain Events

Javier FerrerRafa Gómez

By Javier Ferrer y Rafa Gómez Software Design and Architecture

Delve into the main issues when publishing and consuming domain events.

💸 First lesson available without registration 💸

When working with an Event-Driven Architecture (EDA), there are usually two main problems:

  • Out-of-order events: No matter how much we publish event A first and then B, when we consume them, we receive B first and then A.
  • Duplicate events: Even if we have only published event A, when we go to consume it, we get A and then the same A again.

These are problems that can be avoided, but at a cost. The question is... do we want to assume that cost, or do we have another way to manage it?

With this course, you will achieve:

  • 💡 Understand why these types of problems arise with DDD.
  • 🤔 Understand whether it makes sense to avoid them or not.
  • 🚀 Prevent scalability issues.

Related courses

See full catalogue

Pay according to your needs

lite (only monthly)

19 €
per month
  • Access to a subset of courses to lay the foundation for maintainable, scalable, and testable code
  • Company invoice
Popular

standard

24,92 €
Save 121
Annual payment of 299
per month
  • Full course catalog
  • Design and architecture challenges
  • Highlighted solutions videos for challenges
  • Receive job offers verified by Codely
  • Company invoice

premium

41,58 €
Save 89
Annual payment of 499
per month
  • Everything above
  • More benefits coming soon

We won’t increase the price while your subscription is active