AWS Cloud Developer: Messaging and Containers Flashcards
Differences between Notifications and Messages
Notifications are sent to Humans
Messaging occurs between internet-based devices and appliccations
SNS -simple notification service
Amazon Simple Notification Service (or SNS) is a cloud service that allows you to send notifications to the users of your applications. SNS allows you to decouple the notification logic from being embedded in your applications and allows notifications to be published to a large number of subscribers.
Features of SNS
SNS uses a publish/subscribe model.
SNS can publish messages to Amazon SQS queues, AWS Lambda functions, and HTTP/S webhooks.
Which model is used by SNS
Publish/subscribe model
Users need to subscribe in order to receive notifications
How are notifications sent to end users using SNS
Mobile push
text messages
email
How many messages can one notification contain?
one message
Can SnS be used to send messages to both people and applications?
Yes
Application-to-application messaging
Application-to-application messaging supports subscribers such as AWS Lambda functions, Amazon SQS queues, HTTP/S endpoints, and AWS Event Fork Pipelines. For more information, see Using Amazon SNS for application-to-application (A2A) messaging.
Application-to-person notifications
Application-to-person notifications provides user notifications to subscribers such as mobile applications, mobile phone numbers, and email addresses. For more information, see Using Amazon SNS for application-to-person (A2P) messaging.
Queues
A queue is a data structure that holds requests called messages. Messages in a queue are commonly processed in order, first in, first out (or FIFO).
Messaging queues improve:
performance
scalability
user experience
What type of processing does queuing support?
asynchronous processing
SQS -Simple Queue Service
Amazon Simple Queue Service (SQS) is a fully managed message queuing service that allows you to integrate queuing functionality in your application. SQS offers two types of message queues: standard and FIFO.
Features of SQS
send messages
store messages
receive messages
How many messages can FIFO queues support?
FIFO queues support up to 300 messages per second.
2 types of message queues
Standard and FIFO
When to use a FIFO queue?
When ordering is important
Main difference between FIFO and Standard queues?
FIFO queues guarantee the ordering of messages.
FIFO messages are processed exactly once
Standard queues offer best-effort ordering but no guarantees.
Standard queues deliver a message at least once, but occasionally more than one copy of a message is delivered.