Open iancooper opened 5 years ago
I'm going to pick up this ticket and give it a try @iancooper
@skatersezo Any joy?
@iancooper sorry I haven't put my hands back on this in long time.
Put back into the backlog
@iancooper , to understand you correctly, currently implementation of the AWSSQS message gateway is that the message producer will only send messages to RoutingKey, and we want to allow the gateway to recognize the topic defined in the message header as well and send the message to the topic instead. Did I understand you correctly ?
@honkuan86 We don't support SNS filter policies when creating a subscription at the moment i.e. https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html.
The original idea here was instead of making this specific to one transport e.g. we would like to create a cross-transport ability to configure header-value based routing and then implement in transports that can support it. I'm less sure now that we might not just make this something that you can set on a given Subscription type
This is back in contention for V10. There are a couple of things that we need to think about that all fall into the same space:
Parked this one, will bring back into V11
SNS is a channel, and is a little like an exchange in RMQ, and a little like a routing key. It is possible to use a filter to send to refine the messages sent to queue subscribed to the topic using a header.
RMQ also supports a header exchange that allows headers to be used for routing.
We should support the option to route not only via the routing key, but also by a 'Brighter' header that allows you to subscribe a queue based on routing key and header.