I have a clustered java hibernate application (with 2 nodes) listening to an AWS SQS FIFO. The messages in the queue contains a specific MessageGroupId. When java listener is reading the messages, i can see that the messages with same MessageGroupId are going to multiple listeners. This is causing issues at the hibernate side where one cluster node is overwriting the data set by the other node. Any suggestions on how to address the queue issue?
Ann