AWS SNS maxReceivesPerSecond with message filtering

0

I'm building a rate limiter with queuing capability with AWS SNS and had some few questions regarding how SNS works.

Without any subscriber message filtering, if I set maxReceivesPerSecond = 2, every message will be delivered to each subscriber at the rate of 2 messages per second.

What would happen if each subscriber has message filtering enabled? For example, If we have a topic with maxReceivesPerSecond = 2, two subscribers SUB_1 and SUB_2, and around 1 million messages in backlog. All messages in backlog are supposed to be delivered to SUB_1. Now if client publishes a new message which is supposed to go SUB_2, would SNS wait for all of 1 million messages to be delivered to SUB_1 first and then delivered that newly published message to SUB_2? Or would it be delivered anyways without waiting in queue?

If later is true, maxReceivesPerSecond which is same for all subscribers would be applied post-filtering?

Thanks,

Umar
asked 5 months ago111 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions