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

前端 未结 3 1829
悲哀的现实
悲哀的现实 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 05:59

    If you already have a system that allows shared locks, why not have a lock for every queue, which consumers must acquire before they read from the queue?

提交回复
热议问题