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
已提问 7 个月前251 查看次数
1 回答
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
专家
已回答 7 个月前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则