Design Patterns · Senior · Question 41 of 75

What are domain events on the frontend, and why are they useful?

Explanation

The checkout module publishes an event, and analytics, the cart and notifications react without being directly coupled. It's Pub/Sub at the domain level; it's important to maintain an event catalog and type the payloads.

Further reading

Problem with a question

Design Patterns · Senior · question 41

Test yourself

Take the Design Patterns · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz