Message Publisher
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
send
- Send a string type
via Publisher. It does not need any conversion, you may add additional Media Type
of $data
.
sendWithMetadata
- Does the same as send,
allows for sending additional .
convertAndSend
- Allow for sending types, which needs conversion. Allow for sending objects and array, Ecotone
make use of to convert $data
.
convertAndSendWithMetadata
- Does the same as convertAndSend,
allow for sending additional .
Publisher is a special type of , which implements .
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.