Hi Ognjen, I believe the issue is that messages are sent to Artemis first and then consumers connect, right? In this case first consumer will get all or most of the message groups assigned. Could you try to first connect consumers and then send messages?
I think that ActiveMQ 5.x had better logic in this that waited for some time give chance to all consumers connect and then "load-balanced" message groups across consumers. I'm not sure if there is Artemis feature request jira for similar behavior. Thanks, Mirek ----- Original Message ----- > From: "Ogi" <askov...@gmail.com> > To: users@activemq.apache.org > Sent: Friday, January 26, 2018 12:15:08 PM > Subject: [ARTEMIS] Messages with same group-id are received by multiple > consumers > > I have two deployed apps, one on my local machine and one on the server and > both apps are communicating through the same Artemis client which is > installed on the server. Artemis version is 1.5.5. Problem occurs when I > execute simple test that sends 1000 messages divided into multiple groups, > in this case 50 groups (numbers are not important, it happens no matter the > number of messages or groups) from the server app. Local app consumer > receives every group and almost all messages. It's because server app > consumer receives for example only one message from let's say group number 5 > and that behavior is repeated in multiple groups. > > Why is this happening, am I missing something ? Again, both consumers and > producers are working on same Artemis. > > Thank you in advance, > Ognjen > > > > -- > Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html >