[AWS] SQS - Create a Queue
Amazon SQS is a service that hosts the queue of messages (requests and responses) from the decoupled application components. Have a quick look at this SQS workflow to understand it better.
Let's see how to create an SQS queue, and learn to send/receive messages.
A. Queues Dashboard
From the AWS management console, select SQS (Simple Queue Service), or you can directly go to the Queues dashboard. Start the Create queue wizard from there.

Launch Create queue from Amazon SQS homepage

Launch Create queue from Queues dashboard
B. Create a Queue
A queue can be created quickly in three steps:
- General details - Provide a case-sensitive name, and choose the type of queue - Standard or FIFO, you want to create. A standard queue supports an unlimited number of transactions per second (TPS) for each API action (SendMessage, ReceiveMessage, or DeleteMessage). Whereas, FIFO queues support up to 3000 messages per second while strictly preserving the message order.

Snapshot: Create queue - General details
-
Configuration details - You can set the following items:
-
Visibility timeout - The time-duration (0 seconds - 12 hours) after which a consumer message can become visible to the other consumers. Generally, the consumer must process and delete a message from the queue.
-
Message retention period - The duration (1 minute - 14 days) for which the queue retains a message that does not get deleted. Amazon SQS will automatically delete messages that have been in a queue for more than the specified period.
-
Delivery delay - The time (0 seconds - 15 minutes) to intentionally delay the delivery of each (new) message added to the queue. According to AWS:
If your consumers need additional time to process messages, you must delay each new message coming to the queue.
- Maximum message size - It should be between 1 KB and 256 KB.
-

Snapshot: Create queue - Configuration details
- Access policy - You can define specifically who can send/receive messages to/from your queue. Choose the queue owner, or specified AWS accounts, IAM users, and roles as sender/receiver. The access policy can also be defined in JSON format.

Snapshot: Create queue - Access policy
C. Details of an Existing Queue
Select a queue from the Queues dashboard to view the basic details and configuration.

Snapshot: Details of an existing queue
In the snapshot above, the URL https://sqs.us-east-2.amazonaws.com/014421265158/MyQueue
is an essential field to use in your application components. In addition, you can also view details about the Lambda triggers, and the access policy. You can even monitor various metrics, such as approximate age of message, the number of messages sent/received/delayed/deleted/empty receives, and size consumed by sent messages.
D. Send and receive messages
For the selected queue, you can either send/receive messages or configure Lambda function trigger. Let's see how to send and receive messages using a Standard queue.
-
Send message
Specify the message body and delay duration while sending a message. As stated earlier, you must add a delay to each new message, if your consumers need additional time to process messages. In other words, your consumer will receive the message only after the duration specified here.You can also mention the metadata, such as timestamps, geospatial data, signatures, and identifiers in the form of Message attributes.
In a FIFO queue, there is an additional concept of message group, to ensures that the messages belonging to a particular group are processed in a strict order.

Snapshot: Message body and delay duration while sending a message
-
Receive messages
A consumer cannot choose a specific message to receive. Instead, a consumer polls to receive up to 10 number of messages from the queue. The snapshot below shows a message received after polling. The default polling duration is set to 30 seconds.Next, click on the message ID to view the message details, body, and metadata. Later, delete the message manually, if not in use.

Snapshot: Poll for messages to receive messages

Snapshot: View the message details, body, and metadata.
Note: SQS pricing is based on the count and size of messages, and the interactions with Amazon S3 and the AWS Key Management Service.
External Resource
- Basic Amazon SQS architecture
- Refer to the Getting started with Amazon SQS, that demonstrates the following steps:
- Step 1: Create a queue
- Step 2: Send a message
- Step 3: Receive and delete your message
- Step 4: Delete your queue
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
2020-03-17 [React + CSS3] Create an Animate Content Placeholder for Loading State in React
2020-03-17 [HTML5] DOM Nodes Explained
2019-03-17 [Algorithm] Search for matching words
2019-03-17 [Algorithm] Trie data structure
2017-03-17 [Angular] USING ZONES IN ANGULAR FOR BETTER PERFORMANCE
2017-03-17 [TypeScript] Using ES6 and ESNext with TypeScript
2016-03-17 [AngularJS] Angular 1.5 multiple transclude