Messaging Flashcards

1
Q

SQS

A

Simple Queuing Service

  • used to decouple applications
  • unlimited throughput and number of messages in the queue
  • messages are persisted until consumers (applications) remove the message
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SQS - Security

A

Encryption - can use in-flight HTTPS API, at-rest KMS keys or client-side encryption

Access Controls - IAM policies to regulate access to the SQS API

SQS Access Policies - S3 bucket policies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SQS – Message Visibility Timeout

A

After a message is polled by a consumer, it becomes invisible to other consumers, by default 30s

If a message is not processed within the visibility timeout, it will be processed twice unless the consumer asks for more time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SQS – Dead Letter Queue

A

Set a threshold of how many times a message can go back to the queue and if exceeded, send to dead letter queue

Retention of messages in DLQ is 14 days

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

SQS – Delay Queue

A

Delay visibility of a message to a consumer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

SQS – FIFO Queue

A

First In First Out (ordering of messages in the queue)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SNS

A

A queue that follows a subscription model to send messages which allows for multiple consumers to consume the same message based on a topic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SNS - Security

A

Similar to SQS:

Encryption - can use in-flight HTTPS API, at-rest KMS keys or client-side encryption

Access Controls - IAM policies to regulate access to the SNS API

SNS Access Policies - S3 bucket policies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

SNS + SQS: Fan Out

A

Pattern that push messages once into SNS, then is received in all SQS queues that are subscribers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

AWS Kinesis

A

Kinesis is a managed alternative to Apache Kafka which is a application for big data i.e. logs, IoT, clickstreams

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Kinesis Streams

A

Low latency streaming ingestion at scale to perform analytics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Kinesis Streams Shards

A

Streams are divided in ordered Shards / Partitions
- can scale over time

For a message, the same “partition” key goes to the same partition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Kinesis Data Firehose

A

Fully Managed Service, no administration, automatic scaling, serverless to load (big) data into Redshift / Amazon S3 / ElasticSearch / Splunk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Kinesis Data Analytics

A

Perform real-time analytics on Kinesis Streams using SQL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Ordering data into SQS

A

Use Group ID to scale consumers of SQS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Amazon MQ

A

Used for migrating non-proprietary messaging applications into the cloud that use other protocols such as MQTT, AMQP, STOMP, Openwire, WSS
- doesn’t scale as much as SQS/SNS