Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS SNS workaround for 100,000 topics limit

Tags:

I am developing an architecture for push notifications using AWS SNS with APNS and GCM. The model that I am following is

  • Each user (not device) will have an SNS topic corresponding to it
  • Each user can have multiple devices
  • Create an platform application endpoint for each device
  • Subscribe the platform application endpoint to the topic belonging to the device's user

This way, when we have to send a notification to all the devices of a user, we need to call the publish method using the user's topicArn and all its devices should get the message.

However, by default AWS has a limit of 100,000 topics. If we are anticipating higher number of users like 1 million or say 10 million to be optimistic, is there any workaround for this approach?

Should I ask AWS to raise the limit beforehand? Do they raise limit to a number like 100 million easily? Is there any cost implication of most of them are not used in the beginning few months?

like image 733
Mandeep Singh Avatar asked Jul 07 '16 20:07

Mandeep Singh


People also ask

What is the maximum number of topics per account that can be created on Amazon SNS?

Message fanout: Each account can support 100,000 Standard topics and each topic supports up to 12.5M subscriptions.

How can I increase my SNS spending limit?

Open the Amazon SNS console. Open the left navigation menu, expand Mobile, and then choose Text messaging (SMS). On the Mobile text messaging (SMS) page, next to Text messaging preferences, choose Edit. On the Edit text messaging preferences page, under Details, enter your new SMS spend limit for Account spend limit.

How many messages can SNS handle?

A single Amazon SQS message queue can contain an unlimited number of messages. However, there is a quota of 120,000 for the number of inflight messages for a standard queue and 20,000 for a FIFO queue.


1 Answers

disclosure: I used to work on Amazon SNS

The architecture you propose is a common pattern within Amazon SNS and is sound.

You should ask for a topic limit increase. There is no cost implication for having a higher topic limit, even if you create the topics and don't use them. However, you will pay $0.50/million requests for each CreateTopic call, with the first 1 million requests being free per month.

When you submit the support ticket, please document your use case. It helps the team expedite your limit increase request.

like image 148
Rohan Deshpande Avatar answered Oct 11 '22 05:10

Rohan Deshpande