Exploring AWS !!
Day 54
Amazon SQS queue types
2 Types of queues supported - Standard queue, FIFO queue
Standard Queue:
Unlimited Throughput - unlimited number of API calls/second, per API action(SendMessage, ReceiveMessage, DeleteMessage)
At-least-once delivery - usually message is delivered at-least once, but sometimes one or more copies get delivered.
Best Effort Ordering - sometimes, messages get delivered in a different order than sent.
Send data between applications, where throughput is important -
Decouple live user requests from background work - users can upload media while resizing or encoding
Allocate tasks to multiple worker nodes - sending high number of credit card validation requests
Batch messages for future processing - scheduling entries to be added to database.
FIFO Queue:
High Throughput - while using Batching, FIFO supports upto 3000 messages per second, per API method(SendMessageBatch, ReceiveMessage, DeleteMessage). These 3000 messages per second represent 300 API calls, each with batch of 10 messages. Without batching, supports upto 300 API calls per second per method API (SendMessage, ReceiveMessage, DeleteMessage).
Exactly-Once Processing - message is delivered once, remains until the consumer processes and deletes it. Duplicates are not present.
First-In-First-Out Delivery - order of message delivery is preserved.
Send data between applications, when order is important -
We need to ensure that commands entered are in right order.
Display correct prices by sending modifications in order.
prevent student from enrolling before registering into an account.