简体   繁体   中英

Amazon Sns and cloudwatch pricing

Im studing aws pricing and I have two doubts about Amazon SNS and Amazon Cloudwatch.

About cloudwatch, Im using it to monitor sns topics and to monitor a dynamodb table. 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. So to monitor sns topics and dynamodb its not basic monitoring and we need to pay $0.50 per month for each metric?

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. 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 :

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? 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. Pretty steep if you have a lot of metrics.

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

you pay for api calls (what's called publishes in that page). you also pay when SNS delivers messages to subscribers. 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.
Assume you sent 5_000_000 notifications to the topic.
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 / 100_000 * 2.00$ * 2 (2 email adresses) = 200 $ for email delivery
for a total of 202.5$

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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