All technological notes.
Amazon SQSAmazon SQS(Simple Queue Service)
SQS scales automatically.

SQS using the SDK (SendMessage API)Message retention:
4 days, up to 14 daysExample: send an order to be processed

Consumers
10 messages at a time)Process the messages
DeleteMessage API

Fully managed service, used to decouple applications
Attributes:
4 days, maximum of 14 days256KB per message sent








FIFO = First In First Out (ordering of messages in the queue)
300 msg/s without batching, 3000 msg/s with
SQS FIFO (First-In-First-Out) Queues have all the capabilities of the SQS Standard Queue, plus the following two features.
SQS standard, there is no ordering.SQS FIFO, if you don’t use a Group ID, messages are consumed in the order they are sent, with only one consumer
Group ID (similar to Partition Key in Kinesis)
Delete the existing standard queue and recreate it as a FIFO (First-In-First-Out) queue
Make sure that the name of the FIFO (First-In-First-Out) queue ends with the .fifo suffix
Make sure that the throughput for the target FIFO (First-In-First-Out) queue does not exceed 3,000 messages per second






Encryption:
HTTPS APIKMS keysAccess Controls:
IAM policies to regulate access to the SQS APISQS Access Policies (similar to S3 bucket policies)
30 seconds
ChangeMessageVisibility API to get more time
单一 message 多次 process 的原因:
考题解析:
SQS Visibility Timeout is a period of time during which Amazon SQS prevents other consumers from receiving and processing the message again. In Visibility Timeout, a message is hidden only after it is consumed from the queue. Increasing the Visibility Timeout gives more time to the consumer to process the message and prevent duplicate reading of the message. (default: 30 sec., min.: 0 sec., max.: 12 hours)Long Polling
1 sec to 20 sec (20 sec preferable)API level using WaitTimeSeconds
CloudWatch Metric – Queue Length(ApproximateNumberOfMessages) to monitor SQS.



