阅读背景:

用于推送消息传递的单个区域内的aws sns,sqs和ec2

来源:互联网 

I am willing to make a simple chat application in django.

我愿意在django做一个简单的聊天应用程序。

After user sends message and the message in saved in Message model I would like to signal the publish event so that my mobile app gets message.

用户发送消息并在消息模型中保存消息后,我想发信号通知发布事件,以便我的移动应用程序获取消息。

I went throught the SNS documentation and in its pricing I found Data transferred between Amazon SNS and Amazon EC2 within a single region is free of charge (i.e., $0.00 per GB)

我查看了SNS文档,并在其定价中发现,在单个区域内在Amazon SNS和Amazon EC2之间传输的数据是免费的(即每GB 0.00美元)

My api is/will be hosted in ec2 in the same region lets say at Singapore the same region as sns. If I publish a event which I receive a message in my mobile application , will that cost me or it is considered as same region ? If it does than building a chat application using SNS will be very expensive.

我的api将在同一地区的ec2中托管,可以说在新加坡与sns在同一地区。如果我发布了一个我在移动应用程序中收到消息的事件,这会花费我还是被认为是同一个区域?如果它确实比使用SNS构建聊天应用程序将非常昂贵。

If anyone can meke me clear about it that would be so helpful.

如果有人能告诉我清楚它会有所帮助。

Thank you

谢谢

1 个解决方案

#1


0  

Well I don't think it will be free even if they are in the same region but their prices for SNS are too low, if in free tier of Amazon you won't be charged for

好吧,我不认为即使他们在同一地区也会免费,但他们的SNS价格太低,如果在亚马逊的免费等级,你将不会被收费

1,000,000 Requests of Amazon Simple Queue Service every month**

每月1,000,000个Amazon Simple Queue服务请求**

1,000,000 Requests, 100,000 HTTP notifications and 1,000 email notifications for Amazon Simple Notification Service every month**

每月1,000,000个请求,100,000个HTTP通知和1,000个针对Amazon Simple Notification Service的电子邮件通知**

as the SNS pricing suggests. Going above the limits will cost you :

正如SNS定价所示。超出限制将花费你:

It costs $1.00 to send one million mobile push notifications ($0.50 per million publishes, plus $0.50 per million mobile push notification deliveries). When you use SNS topics to broadcast identical messages to many recipients at once.

发送100万个移动推送通知(每百万发布0.50美元,加上每百万移动推送通知发送0.50美元)需要1.00美元。当您使用SNS主题一次向多个收件人广播相同的邮件时。


分享到: