Section - Decoupling Workflows Overview Flashcards

1
Q

Exam Tips: Decoupling Workflows

A
  • Never tightly couple
    *
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Amazon SQS?

A

Amazon SQS:

  • A message queue service
  • decouple applciation components
  • messages can be up to 256kb
  • pull-based (Not push)
  • rmessages can be kept in the queue from one minute to 14 days (The default retention period is four days)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What types of Queue are Available?

A

Two types of Queue:

  • Standard queues are default, which privide bets-effort ordering.
    • Unlimited Transactions
    • Guarantee
      • Guarantees that a message is delivered at least once
    • best-effort ordering which ensures that messages are generally delivered in the same order as they are sent.
    • occasional duplicates
  • FIFO (First-in-first-out) queues
    • The order in which messages are sent and received is strictly preserved
    • a massage is delivered once and remains available until a consumer processes and deletes it. Duplicates are not introduced.
    • there is a limit of 300 Transactions per second (TPS limit)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Amazon SQS Settings?

A
  • Visibility timeout
    • Visibility timeout is the amount of time that the message is invisible in the SQS queue after a reader picks up that message.
    • default timeout is 30 seconds for a message to be invisible.
    • the visibility timeout can be changed (Maximum 12 hours)
  • Short Polling
    • Returns a response immediately even if there message queue is being polled is empty.
    • This can result in a lot of empty responses if nothing is in the queue.
    • you will still pay for these response.
  • Long Polling
    • Periodically polls the queue
    • Doesn’t return a response until a message arrives in the message queue or the long poll times out.
    • Can save money
    • Long polling is generally preferable to short polling.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Amazon SQS Delay Queues?

A

SQS Delay Queues - postpone delivery of new messages

  • Postpone delivery of new messages to a queue for a number of seconds
  • Messages sent to the Delay Queue remian invisible to consumers for a duration of the delay period
  • Default delay is 0 seconds, maximum is 900 (15 minutes)
  • For Standard Queues, changing the setting does’nt affect the delay of messages already in the queue, only new messages
  • For FIFO Queues, this affects the delay of messages already in the queue
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Amazon SQS Large Messages?

A

Best Practice for Managing Large SQS messages using AWS S3

  • For large SQS messages - 256KB up to 2GB in size
  • Use S3 to store the messages
  • Use Amazon SQS Extended Client Library for Java to manage them
  • Cannot use the AWS CLI,AWS Management Cosole, SQS Console, SQS API
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is AWS SNS ?

A

A Simple Notification Service

  • Push Notification
    • To devices (Apple, Google, Fire OS, Windows and Adroid )
  • SMS and Email
    • SMS text message or email to Amazon Simple Queue(SQS) queues or any HTTP endpoint
  • Lambda
    • Trigger Lambda functions to process the information in the message, publish to another SNS topic, or send the message to another AWS service
  • Pub-Sub model
  • Durable Storage
    • ​All messages published to Amazon SNS are stored redundantly acrosss multiple Availability Zones
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

AWS SNS Vs SES?

A

Amazon SES (Simple Email Service)

  • Scalable and Highly Available Email
    • Designed to help marketing teams and application developers send marketing, notification, and transactional emails to thier customers using a pay-sa-you-go model.
  • Send and Receive Email
    • Can also be used to receive emails with incoming mails delivered to an S3 Bucket
  • Trigger Lambda and SNS
    • Incoming emails can be used to trigger Lambda functions and SNS notifications.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is API Gateway?

A
  • Amazon API Gateway is fully managed service that allows you to publish, create, maintain, monitor and secure your API. It allows you to put a safe “Front door” on your application.
  • Security:
    • This service allows you ti easily protect your endpoinmts by attaching a web application firewall (WAF - Web Application Firewall)
  • Stop Abuse
    • Users can easily implement DDos protection and rate limmiting to curb abuse of their endpoints.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly