Comment

Comment by st4lz

That's exactly what they want to avoid.

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.

parent st4lz 3 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton