简体   繁体   English

Amazon Sns和Cloudwatch定价

[英]Amazon Sns and cloudwatch pricing

Im studing aws pricing and I have two doubts about Amazon SNS and Amazon Cloudwatch. 我正在研究AWS定价,并且对Amazon SNS和Amazon Cloudwatch有两个疑问。

About cloudwatch, Im using it to monitor sns topics and to monitor a dynamodb table. 关于cloudwatch,Im使用它来监视sns主题和监视dynamodb表。 Im reading about cloudwatch pricing and it says that the basic monitoring metrics for amazon ec2, amazon ebs, elastic load balancers and amazon rds are free. 我在读有关cloudwatch的价格时说,亚马逊ec2,亚马逊ebs,弹性负载均衡器和亚马逊rds的基本监控指标是免费的。 So to monitor sns topics and dynamodb its not basic monitoring and we need to pay $0.50 per month for each metric? 因此,要监视sns主题并动态监测其不是基本监视,我们需要为每个指标每月支付$ 0.50吗?

About SNS it says that we pay based on the number of notifications we publish, the number of notifications we deliver, and any additional API calls for managing topics and subscriptions. 关于SNS,它表示我们根据发布的通知数,交付的通知数以及用于管理主题和订阅的任何其他API调用付费。 Im bit confuse about this pricing, we pay for any API call, for example create a new topic, getl all topics, etc, ok this part it is clear, but Im not understanding about the other two, for exmaple in my code I have : 我对这种定价有些困惑,我们为任何API调用付费,例如,创建一个新主题,获取所有主题等等,好,这一部分很清楚,但是我不了解其他两个,例如我的代码:

message = "this is a test"
message_subject = "Message test"        
publication = sns.publish(topicArn, message, subject=message_subject)

In this case we have the cost about publish, and also in this sns.publish we need to pay relative to API calls? 在这种情况下,我们要承担发布成本,并且在此sns.publish中,我们需要相对于API调用付费吗? And also we need to pay when we publish a message, and to this cost it is added the cost of deliver notifications? 而且,我们在发布消息时需要付款,并且为此增加了传递通知的费用吗? But its not the same thing? 但是它不是同一回事吗? Publish a message or deliver a notification? 发布消息还是传递通知? Or notifications it is that confirmation subscriptions that we receive in email when we subscribe some email in the topic? 或通知,是当我们在主题中订阅一些电子邮件时,我们在电子邮件中收到的确认订阅?

subscriptionEmail = sns.subscribe(topicArn, "email", email)

yup. 对。 for cloud watch it's 0.5$ per metric. 对于云端观看,则为每指标0.5美元。 Pretty steep if you have a lot of metrics. 如果您有很多指标,那就太陡了。

for sns: http://aws.amazon.com/sns/pricing/ 对于sns: http//aws.amazon.com/sns/pricing/

you pay for api calls (what's called publishes in that page). 您需要为api调用付费(在该页面中称为api发布)。 you also pay when SNS delivers messages to subscribers. 您还需要在SNS向订户传递消息时付款。 you are right that the operation of publishing a notification is different from the operation of sending the notification to subscribers and they fall in 2 different pricing buckets 您是对的,发布通知的操作与将通知发送给订户的操作不同,它们属于两个不同的定价时段

what really matters is the number of notifications you push and who you push them to (deliveries). 真正重要的是您推送的通知数量以及将其推送给谁(交付)。 All the other numbers are a rounding error even for applications with a moderate amount of traffic. 即使对于通信量适中的应用程序,所有其他数字都是舍入误差。

to give an example. 举个例子。

Assume you have 1 SNS topic with 2 email address subscribed to it. 假设您有1个SNS主题,并且已订阅2个电子邮件地址。
Assume you sent 5_000_000 notifications to the topic. 假设您向该主题发送了5_000_000条通知。
You would pay (this assumes you have exhausted the free tier already): 您需要付费(假设您已经用尽了免费套餐):
5_000_000 / 1_000_000 * 0.50$ = 2.5$ for publishing to the topic 5_000_000 / 1_000_000 * 0.50 $ = 2.5 $用于发布到主题
5_000_000 / 100_000 * 2.00$ * 2 (2 email adresses) = 200 $ for email delivery 5_000_000 / 100_000 * 2.00 $ * 2(2个电子邮件地址)= 200 $用于电子邮件发送
for a total of 202.5$ 总计202.5 $

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM