Interview Prep/AWS/DNS, CDN and Messaging

How does SNS message filtering work?

IntermediateConceptDNS, CDN and Messaging
Answer

A subscription filter policy on message attributes (or on the message body, with FilterPolicyScope: MessageBody) delivers only matching messages to that subscriber, so one topic serves many consumers without each filtering in code.

{"eventType":["order_created"],"amount":[{"numeric":[">=",100]}]}

Messages that match no subscription are simply dropped for those subscribers.

aws All AWS questions Roadmap: AWS core services

More on DNS, CDN and Messaging