mercredi 5 mars 2014

Routing messages from Amazon SNS to SQS


Vote count:

0




In RabbitMQ, one can create an exchange, then bind it to multiple queues, each with a routing key. This enables messaging architectures like this:



message_x
/ | \
foo-msg_q bar-msg_q msg-logger_q


Clients publish messages to the message_x exchange, which routes messages with routing key "foo" to the foo-msg_q queue, messages with the routing key "bar" to the bar-msg_q queue, and all messages to msg-logger_q queue.


Is it possible to doing something like this when using Amazon Simple Notification Service to fan out to multiple Simple Queue Service queues?


My first thought was to set up permissions on the individual queues to accept messages based on subject, but the only available fields for permission conditions are:



  • aws:CurrentTime

  • aws:EpochTime

  • aws:MultiFactorAuthAge

  • aws:principaltype

  • aws:SecureTransport

  • aws:SourceArn

  • aws:SourceIp

  • aws:UserAgent

  • aws:userid

  • aws:username


None of these seem like they can be influenced by any message I publish to the message_x topic.



asked 4 mins ago






Aucun commentaire:

Enregistrer un commentaire