How do you process messages in parallel while ensuring FIFO per entity?

前端 未结 3 1821
悲哀的现实
悲哀的现实 2020-12-11 05:11

Let\'s say you have an entity, say, \"Person\" in your system and you want to process events that modify various Person entities. It is important that:

  • Events
3条回答
  •  不思量自难忘°
    2020-12-11 06:06

    It looks like JMSXGroupID is what I'm looking for. From the ActiveMQ docs:

    http://activemq.apache.org/message-groups.html

    Their example use case with stock prices is exactly what I'm after. My only concern is what happens if the single consumer dies. Hopefully the broker will detect that and pick another consumer to associate with that group id.

提交回复
热议问题