How do you use Clean Architecture with a CQRS or event driven architecture? #30
Replies: 2 comments 3 replies
-
What are you struggling with exactly ? Maybe this article will be useful for you : https://herbertograca.com/2017/11/16/explicit-architecture-01-ddd-hexagonal-onion-clean-cqrs-how-i-put-it-all-together/ |
Beta Was this translation helpful? Give feedback.
-
@pescadorbob great question, the impact of architecture on the decomposition of use cases. I think there wasn't a clear answer to these because all the diagrams for hexagonal and clean architecture are at the monolith level; the case of distributed systems was not covered there.... So that could explain the part "Mostly I got shrugs. " So the following is how I currently see it. Let's say the use case in e-commerce is making an order, which could mean processing payments, reserving inventory, and sending an email notification.
|
Beta Was this translation helpful? Give feedback.
-
One of the challenges I've faced with Domain Driven Design systems on CQRS and event-driven microservices is how to write them with clean architecture or hexagonal architecture in mind. The challenge increases when you consider how events enable nearly limitless functional extensibility to the behavior. How does one go about writing the BDD tests at the unit level for something like that?
Beta Was this translation helpful? Give feedback.
All reactions