What to publish?
- Domain events - for example, “payment_paid”
event with a payload containing things that will
be useful for the consumers to do something
with the event, so maybe amount, currency,
payment time, transaction ID etc.
- Events for activity tracking, metrics and
analytics, e.g. “page_visited” with user’s ID,
timestamp and URL of the page etc.