0

In my Aws SQS Fifo queue I have:

A, B, C1, C2, C3, C4, C5, ... ,C100 D

What I would like to do is process in order exactly A, B, Cn and D but C can be consumed parallel.

Is there a way to guarantee the order of consuming by providing parallelism for C groups?

Cemo
  • 5,370
  • 10
  • 50
  • 82
  • Possible duplicate of [RabbitMQ - Message order of delivery](https://stackoverflow.com/questions/21363302/rabbitmq-message-order-of-delivery) – theMayer Feb 14 '18 at 14:20

1 Answers1

0

As this answer points out, there is no way to ensure order of processing when you have multiple consumers operating in parallel, and attempting to synchronize the parallel consumers will have the effect of using a serial consumer.

While the answer referenced was oriented to RabbitMQ, the general principles apply regardless of queuing system.

theMayer
  • 15,456
  • 7
  • 58
  • 90