Ben Foster 3/4/2014

Deferred Domain Events

Read Original

This technical article discusses implementing the Domain Events Pattern in software, highlighting a synchronous dispatch approach. It details a common problem in web applications where events need the database transaction committed first (e.g., to get generated IDs). The author proposes a 'Deferred Domain Events' solution to delay event dispatch until after the unit of work is complete, preventing handlers from accessing non-persisted entities.

Deferred Domain Events

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes