Skip to content

Domains listening to many other domains in Event-Driven Architecture

reactivesystems.eu
6 pointslutzh1 comment
On HN

Comments

Interesting way of looking at it. The way I’ve usually seen it is by modeling events more like “classes” where an event has a “type” and can inherit other “types” or “interfaces”. So if you want a notification to go out with a domain event, it must implement the “notify” interface.

Commands don’t belong on an event bus though, IMHO. Commands are method calls (or RPC) not messages.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.