AWS SQS - Basics

AWS SQS - Basics

Tags
Engineering
AWS
SQS
Created
Dec 28, 2022 04:14 AM
Edited
Dec 27, 2021
Description
Introduction to AWS Simple Queue Service

Simple Queue Service

Fully managed message queues for microservices, distributed systems, and serverless applications

Queue types

Functionality

Unlimited queues and messages

  • In any region

Payload size

  • Up to 256KB
  • Each 64KB of payload is billed as 1 request
💡
There are ways to send payload that is over 256KB using S3.

Batches

  • Send/receive/delete messages in batches of up to 10 messages or 256KB
  • One batch cost as the same as one message, so using batches is more cost effective
  • Adjust MaxNumberOfMessages to reduce costs and receive as many messages as possible if you app can consume

Polling

Retain messages in queues for up to 14 days

Send and read messages simultaneuously

Message locking

  • The message is locked while being processed

Queue sharing

  • Securely share Amazon SQS queues anonymously or with specific AWS accounts
  • Queue sharing can also be restricted by IP address and time-of-day

Server-side encryption (SSE)

  • SSE encrypts messages as soon as SQS receives them
  • SQS only decrypts messages when they are sent to an authorized consumer

Others

Related Articles