More extensibility or configurability to prevent need of service-specific publishers #149
brendonparker
started this conversation in
Ideas
Replies: 1 comment
-
I've hacked in an example of how this might working in this repository: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I really like the cleanliness of
IMessagePublisher
.But it lacks (rightly so) any knowledge of whether the message is for SNS or SQS or is Standard or FIFO.
For example: if I have a message bound to a FIFO queue, I need to set the MessageGroupId. If I try and send that message using the
IMessagePublisher
it fails withWhich is a great error message! But the prescribed solution kinda stinks.
What if there were some form of middleware that could be injected to tweak the message prior to sending it? For example, to add/set the
MessageGroupId
. This would allow more flexibility to continue to useIMessagePublisher
without needing to know to useISQSPublisher
.Or some configuration when the type is registered like:
Beta Was this translation helpful? Give feedback.
All reactions