I am currently working on an assignment which requires me to benchmark response times between apache activemq and aws-sqs.
In my finding I found that, activemq producer takes 35 sec / 1000 messages [120 bytes each] consumer takes 250 ms / 1000 messages [120 bytes each]
I am using Maven + Git + Java based project structure. I am creating a session from connectionfactory in a following way:
cFactory.createSession(false, Session.AUTO_ACKNOWLEDGE);
Connection is synchronous, message reliability is important. Can someone tell me the logic or reason behind this behavior?
I suspect that producer takes time because it has to not only send but also wait for the acknowledgement from amq service running on ec2 about the fact that it has journaled the message.
Please let me know why the producer is slow and how can I improve upon it.