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
preguntada hace 2 años290 visualizaciones
2 Respuestas
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
respondido hace 2 años
  • Thenk you, i'll check this ))

0

I seek solution for pure serverless event driven srchitect

profile picture
boter
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas