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
asked 2 years ago287 views
2 Answers
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
answered 2 years ago
  • Thenk you, i'll check this ))

0

I seek solution for pure serverless event driven srchitect

profile picture
boter
answered 2 years ago

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