CoursesAI WorkshopCompaniesPricingBlogNewsletter
  • Courses
  • AI Workshop
  • Companies
  • Pricing
  • Blog
  • Newsletter
Subscribe
  • Courses
  • Companies
  • Communities
  • Blog
  • Gift card
  • Newsletter
  • Help
  • Shop
  • ConfAiBot
  • Contact
  • Legal notice
  • General conditions
  • Privacy policy
  • Cookies policy

Course of Issues with DDD: Error Handling in Domain Events

Standard
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.

Go to course

💸 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.

Videos of the course

  • [FREE] 🤷 Problems of Distributed Systems: Why Events Can Come Out of Order
  • 🏁 Consume Renamed Course Before Created Course: How to Avoid It Being a Problem
  • 🏎️ Ensure Data Consistency in Complex Cases

  • 👀 Why Domain Events Can Be Duplicated
  • 🧇 Consume the Same Event Twice Without It Being a Problem
  • #️⃣ Create a Counter That Supports Duplicate Events

  • 🐉 Why Events Can Queue Up Until They Saturate the Queue
  • 🚒 How to Manage a Saturated Event Queue

  • 🐰 What is and Why Does Eventual Consistency Occur?
  • ✅ Ensure that Domain Events Are Always Published

  • 🔙 Can You Rollback the Publication of a Domain Event?
  • 🎼 Manage the Rollback Using Explicit Sagas
  • ✉️ Manage the Rollback Using Implicit Sagas

  • 🫠 Does It Make Sense to Test Domain Events in Microservices?
  • 🤔 Integration Test of the Event Bus
  • 🛋️ How the Testing Strategy Looks

  • 🚶 Conclusions and Next Steps
Go to course

Related courses

Standard
Design patterns: Inbox and Outbox

📬 Design patterns: Inbox and Outbox

Javier FerrerRafa Gómez

Learn when to use (and when not to use) the Inbox and Outbox patterns.

See course
Standard
Event Bus in a Database [Infrastructure Design]

🚏 Event Bus in a Database [Infrastructure Design]

Javier FerrerRafa Gómez

Add scalability by using your own database as an event bus.

See course
Standard
Green Slope Audit

🟢 Green Slope Audit

Javier FerrerRafa Gómez

Audit session where we review Green Slope's Software Design and Architecture.

See course
See full catalogue

Pay according to your needs

lite (only monthly)

19 €
per month
  • Essential programming courses to build a solid foundation
Popular

standard

24,92 €
Discount vs monthly of 49 €
Annual payment of 299 €
per month
  • Main catalog to master writing maintainable, scalable, and testable code
  • Receive job offers verified by Codely
  • Company invoice
  • Accumulate renewal discounts

premium

41,58 €
Discount vs monthly of 89 €
Annual payment of 499 €
per month
  • Exclusive AI courses to keep you always up to date
  • Early access to new courses
  • Discount on workshops
  • Receive job offers verified by Codely
  • Company invoice
  • Accumulate renewal discounts

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

SubscribeSign in