Message Consumers in NestJS
NestJS provides a declarative, decorator-based approach to request routing. When using DugongJS with NestJS, you can use a similar approach to define message consumers that handle specific domain events using a declarative syntax.
Messages
In DugongJS, a message refers to a domain event in transit, in the context of a message broker. When a domain event is published as a message, it is mapped into the transport format required by the message broker. This process involves mapping the domain event for transmission and then mapping it back when it is received.