Messaging and Integration Services Flashcards
coupling
defines the interdependencies or connections between components of a system
loose coupling
helps reduce the risk of cascading failures between components
example of tight coupling
monolithic app
example of loose coupling
microservices architecture
what are queues used for?
to implement loosely-coupled systems
queue
a data structure that holds requests or messages
FIFO
first in first out
Simple Queue Service (SQS)
a message queueing service that allows you to build loosely coupled systems
- component-to-component messaging
- multiple components (producers) can add messages to the queue
- messages are processed asynchronously
asynchronous
you don’t wait for the response, just let the user go on their way
Example of using SQS
building a money transfer app that performs well under heavy load
what can messaging queues do?
help improve performance and scalability
Simple Notification Service (SNS)
allows you to send plain text emails and text messages from your applications
- works with CloudWatch when an alarm’s metric threshold is breached
Example of SNS
send an email when CUP utilization of an EC2 instances goes above 80%
Simple Email Service (SES)
Email service for sending HTML emails from your applications
- provides insights into click-thru and open rates for email marketing campaigns