Amazon Simple Queue Service - Message offloading

0

Hello,

I am trying to understand SQS message offloading (Enqueue messages that take longer time to process). How does it work? Let's say we have interactive messages (take short time to process) and messages that take long time to process in one SQS Queue, how do we enqueue those slow messages? Do we create another SQS and move it?

Thank you

Amanuel

Aman
asked 7 months ago236 views
1 Answer
1

Hello.

Offloading SQS messages refers to a configuration of SQS, not a feature.
https://aws.amazon.com/sqs/features/

For example, add messages that take a long time to process to an SQS queue.
Once a message is added to the SQS queue, the application returns a response to the client with an HTTP status code of 202.
The configuration of an asynchronous system that uses EC2, ECS, etc. to poll for messages to then process the messages in the SQS queue is called message offloading.
When drawn as a diagram, it looks like the following.
sqs

profile picture
EXPERT
answered 7 months ago
  • Thank you very much for the response. So it is the lambda function enqueues the messages that take long time to process out of the way of the interactive messages? For example if we have messages 1,2,3 (fast) 4,5 (slow) then 6,7,8 (fast). Then the function/code in lambda changes the queue to 1,2,3,6,7,8 (fast) then 4,5 (slow) orders?

  • The order in which messages are sent to SQS is not changed by Lambda. For example, I think it is possible to create a Lambda code that can determine high-speed processing and slow processing, and create a configuration where SQS queues for high-speed processing and SQS queues for low-speed processing are separated.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions