java - ActiveMQ Running on AWS - EC2 instance, Producer Performance Improvement -


i working on assignment requires me benchmark response times between apache activemq , aws-sqs.

in finding found that, activemq producer takes 35 sec / 1000 messages [120 bytes each] consumer takes 250 ms / 1000 messages [120 bytes each]

i using maven + git + java based project structure. creating session connectionfactory in following way:

cfactory.createsession(false, session.auto_acknowledge); 

connection synchronous, message reliability important. can tell me logic or reason behind behavior?

i suspect producer takes time because has not send wait acknowledgement amq service running on ec2 fact has journaled message.

please let me know why producer slow , how can improve upon it.

your suspicion correct 'it has not send wait acknowledgement amq service running on ec2 fact has journaled message.'

try sending multiple messages in transaction. messages in tx sent without having wait acknowledgement. when commit() client block waiting acknowledgement operations in tx have been stored successfully.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -