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

No top articles yet