此内容没有您所选择的语言版本。
2.4. Message Encoding
Message body type 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
JMS defines five message body types:
StreamMessageMapMessageTextMessageObjectMessageBytesMessage
Of these message types,
BytesMessage (a stream of uninterpreted bytes) is the fastest, while ObjectMessage (serialization of a Java object) is the slowest.
Encoding recommendation 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
For best performance, therefore, it is recommended that you use
BytesMessage whenever possible. We suggest that you use Google's Protobuf, which has excellent performance characteristics.