100,000 个主题限制的 AWS SNS 解决方法 [英] AWS SNS workaround for 100,000 topics limit

查看:26
本文介绍了100,000 个主题限制的 AWS SNS 解决方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一种将 AWS SNS 与 APNS 和 GCM 结合使用的推送通知架构.我遵循的模型是

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

  • 每个用户(不是设备)都有一个对应的 SNS 主题
  • 每个用户可以有多个设备
  • 为每个设备创建一个平台应用程序端点
  • 将平台应用端点订阅到属于设备用户的主题

这样,当我们必须向用户的所有设备发送通知时,我们需要使用用户的 topicArn 及其所有设备调用 publish 方法应该会收到消息.

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.

但是,默认情况下 AWS 的主题限制为 100,000.如果我们乐观地预计会有更多用户(例如 100 万或 1000 万),这种方法有什么解决方法吗?

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?

我应该事先要求 AWS 提高限制吗?他们很容易将限制提高到一亿这样的数字吗?大多数在开始的几个月中都没有使用,是否有任何成本影响?

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?

推荐答案

披露:我曾经在 Amazon SNS 上工作

您提出的架构是 Amazon SNS 中的常见模式,并且是合理的.

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

您应该要求主题限制增加.即使您创建了主题但不使用它们,拥有更高的主题限制也没有成本影响.但是,您将为每个CreateTopic 调用,每月前 100 万个请求免费.

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.

这篇关于100,000 个主题限制的 AWS SNS 解决方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆