by robertlagrant · 3y ago · 0 comments
The true goal of event-driven is the separation of concenrns, so you don't call `execute_payment`, `send_confirmation_email`, `include_in_report_dashboard` etc inside a `complete_order`.
Instead, you emit "order_issued" event and all subscribers can act based on the event, completely unknown from `complete_order`.
At least that is how I understand it.
You can simulate request-response with it, using a channel to go one way and another the other way, but it can get pretty convoluted.