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
demandé il y a 2 ans290 vues
2 réponses
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
répondu il y a 2 ans
  • Thenk you, i'll check this ))

0

I seek solution for pure serverless event driven srchitect

profile picture
boter
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions