Message Publisher
Message Publisher provide abstraction to send Message to other Services. This way you can send message with simple interface without exposing Message Broker implementation and keeping possibility to easily switch implementation when needed.
Modules Providing Support
Message Publisher Interface
send
- Send astring type
via Publisher. It does not need any conversion, you may add additionalMedia Type
of$data
.sendWithMetadata
- Does the same assend,
allows for sending additional Meta data.convertAndSend
- Allow for sending types, which needs conversion. Allow for sending objects and array,Ecotone
make use of Conversion system to convert$data
.convertAndSendWithMetadata
- Does the same asconvertAndSend,
allow for sending additional Meta data.
How to use Message Publisher
Publisher is a special type of Gateway, which implements Publisher interface.
It will be available in your Dependency Container under passed Reference name.
In case interface name MessagePublisher:class
is used, it will be available using auto-wire.
Last updated