【ActiveMQ Tuning】Message Encoding

原文地址:http://fusesource.com/docs/broker/5.4/tuning/GenTuning-MsgEncoding.html

标签:ActiveMQ优化

Message body type(消息体类型):JMS定义了5中消息体类型

所有的消息中BytesMessage(非解释字节流)最快,ObjectMessage(java对象序列化)最慢。

Encoding recommendation(编码推荐):为了性能,推荐无论什么时候都是尽可能用BytesMessage,我们建议你使用Google的Protobuf,他有非常棒性能特质。
原文地址:https://www.cnblogs.com/kaka/p/2608613.html