Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: