If a service method is part of a transaction and we handle the events inside the listener annotated with then events will be handled only after the transaction commits successfully. In the section about Event Stores he suggests to store published domain events using a designated repository. We can simply publish events after calling the repository save method inside a service method. I am currently getting started with DDD by reading Vernons Implementing Domain-Driven Design.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |