SQS
Simple Queue Service
![](https://huy312100.gitbook.io/~gitbook/image?url=https%3A%2F%2F1722711354-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwNXdoUkfmcozr29fRrfb%252Fuploads%252FNFYfCg6S990zp852pz8z%252FScreenshot%25202023-12-24%2520at%252000.10.25.png%3Falt%3Dmedia%26token%3De91aea3d-9fc9-45bc-a293-6e8110440c0d&width=768&dpr=4&quality=100&sign=d10e1928&sv=2)
Standard Queue
• Oldest AWS offering (over 10 years old)
• Fully managed service (~serverless), used to decouple applications
• Scales from 1 message per second to 10,000 per second
• Default retention of messages: 4 days, maximum of 14 days
• No limit to how many messages can be in the queue
• Messages are deleted after they’re read by consumers
• Low latency (<10 ms on publish and receive)
• Consumers share the work to read messages & scale horizontally
SQS to decouple between application tiers
![](https://huy312100.gitbook.io/~gitbook/image?url=https%3A%2F%2F1722711354-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwNXdoUkfmcozr29fRrfb%252Fuploads%252FI1PQNm4XBJutmg9lQo9Y%252FScreenshot%25202023-12-24%2520at%252000.12.16.png%3Falt%3Dmedia%26token%3Da962cafa-03fd-44ff-9179-a9955167157e&width=768&dpr=4&quality=100&sign=e2e4f149&sv=2)
FIFO Queue
• FIFO = First In First Out (ordering of messages in the queue)
![](https://huy312100.gitbook.io/~gitbook/image?url=https%3A%2F%2F1722711354-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwNXdoUkfmcozr29fRrfb%252Fuploads%252FG4Uj7stvyCZWthd7RUUo%252FScreenshot%25202023-12-24%2520at%252000.14.03.png%3Falt%3Dmedia%26token%3D389144b5-5a7b-4918-be22-6d8fd162bb0d&width=768&dpr=4&quality=100&sign=1f94e76e&sv=2)
• Messages are processed in order by the consumer
Last updated