[ActiveMQ Tuning] JMS Transactions

Source: Internet
Author: User
Use JMS Transactions to improve efficiency

Http://fusesource.com/docs/broker/5.4/tuning/PersTuning-JmxTxn.html

 

You can improve efficiency of the broker using JMS transactions, because JMS transactions enable the broker to process messages inBatches. That is, a batch consists of all the messages a producer sends to the broker before calling commit. sending messages in batches improves the performance of the persistence layer, because the message store is not required to write the batched messages to disk until commit is called. hence, the message store accesses the file system less frequently-that is, once per transaction instead of once per message.

 

You can use JMS Transactions to improve broker efficiency because JMS Transactions allow brokers to submit messages in batches. After the Producer sends messages to the broker in batches, it calls the commit command. Sending messages in batches can improve the performance of the persistent layer, because message storage does not write messages to the disk until the commit statement is called. Because the message storage mechanism does not frequently access the file system, that is to say, a message frequency is replaced by a transaction frequency.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.