DEV Community

Cover image for Learning AWS Day by Day — Day 54 — Amazon SQS queue types
Saloni Singh
Saloni Singh

Posted on

1

Learning AWS Day by Day — Day 54 — Amazon SQS queue types

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.

Image description

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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay