What types of Application communication are available?
Synchronous and Asynchronous
What synchronous models are available for application communication that are scalable?
What is SQS?
A synchronous application communication model that can have many producers (push) and consumers (poll and can consume up to 10 message at a time) from a single queue.
What are the pros and cons of and SQS Standard Queue?
Pros
Cons
What is an SQS delay queue?
This is a delay setting that allows a message to be hidden for up to 15 mins from consumers. It will override the delay delivery parameter that can be set on the individual message.
What is SQS visibility?
This is the time the message is visible by the consumer to pick up. Timeouts range from 0 sec and 12 hours (default 30 sec).
if set too low another consumer could receive the same message.
if set too high and consumer fails to process the message then you have to wait until after timeout to try again.
What is an SQS dead letter queue?
This is when the redrive policy (i.e. number of consumption tries) has been met and the message has still not been processed, the message is sent to the dead letter queue (DLQ). Note: You want to make sure you process the messages in the DLQ before they expire.
What is SQS Long Polling?
This is the process of a consumer waiting for a message to arrive in the queue. This can range from 1 - 20 secs and can be enabled at the queue or API level using the WaitTImeSeconds setting.
What is SQS FIFO Queue?
A newer offering that sets the queue to allow polling of First In-First Out messages.
Can SQS be used with ASG?
Yes, by setting the SQS Queue to poll for messages from a cluster of EC2 instances and setting up a CloudWatch custom metric based on Queue length/Number of instances, you can trigger a CloudWatch Alarm to autoscale.
What is AWS SNS?
This allows message to be sent to multiple consumers using a pub/sub model. The publisher sends the message to one SNS topic and the subscriber polls the SNS topic for notifications. Each subscriber to the topic will receive all the messages unless a filter is used.
What are the characteristics of SNS?
What AWS services can SNS integrate with?
How do we publish and SNS Model?
What is AWS Kinesis?
A managed alternative to Apache Kafka. Great for real-time big data, logs, metrics, IoT, and clickstreams and is automatically replicated to 3 AZs.
What is Kinesis streams?
Low latency streaming that can ingest at scale
What is Kinesis Analytics?
What is Kinesis Firehose?
What are the characteristics of Kinesis streams?
What are the characteristics of a Kinesis Stream Shard?
What is an Kinesis API Put record?
What is the AWS Kinesis exception?
Solutions:
What is Kinesis Security?
A means to control access/authorization using IAM policies
Characteristics include:
What is an Amazon MQ?
A managed Apache ActiveMQ that doesn’t scale as much as SNS or SQS. It runs on a dedicated machine (with HA failover if needed) and has both queue feature and topic features included.