SQL Queries queues

0

I have N+ users, for each user backend send queue of SQL FIFO queries (each may took some time to execute), but queues of different users must run concurrently. How i can realize this? In single SQS i can't do this: FIFO option applies to full SQS, not separate queue.

profile picture
boter
已提問 2 年前檢視次數 290 次
2 個答案
1

You can do what you need using the message group ID when sending messages in a FIFO queue https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagegroupid-property.html

If you attach lambda to consume SQS with concurrency greater than 1, lambda will consume the messages from SQS maintaining the order based on the message group ID with the lambda concurrency that you have specified.

Miki
已回答 2 年前
  • Thenk you, i'll check this ))

0

I seek solution for pure serverless event driven srchitect

profile picture
boter
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南