Scaling - SNS Flashcards
What is SNS?
A pub-sub messaging web service that makes it easy to set up, operate and send notification from the cloud.
What problem does it solve?
workflow systems, mobile applications that are integrated into AWS systems to generate or consume event-driven notification,
What is a publisher?
communicate async with subscribers by producing and sending a message to a topic
What is a subscriber?
consume or receive the message or notification over supported protocols (Lamba, SQS, HTTP/S, Email, SMS)
What are event sources?
EC2, RDS, S3
What are event destinations?
SQS and Lambda
What is a topic?
created by publisher and subscribed to a subscriber who received notification from it
What type of messaging can occur?
message filtering, raw message delivery, system to system messaging, mobile/text user notifications
SNS Delivery retries
- retries with no delay in between attempts
- retries with minimum delay between attempts
- retries wit some back-off model
- retries with some maximum delay between attempts
Monitoring
monitor SNS topics Cloudwatch and logging APIs with CloudTrail
Security
provides encrypted topics, support VPC endpoints, AC policies for endpoint topic control, AWS -Xray for message analyzation and tracing
Pricing
Users pay $0.50 per 1 million Amazon SNS Requests, $0.06 per 100,000 notification deliveries over HTTP, and $2.00 per 100,000 notification deliveries over email.
What are some limits?
SNS offers 10 million subscriptions per topic, and 100K topics per account; SMS can max 140 bytes; SNS 256KB of data max
What are the benefits of a loosely-coupled architecture?
instantaneous, push-based delivery, simple APIs and easy integration of applications, flexible message delivery over multiple protocols; inexpensive; web-bases management console