ActiveMQ isn’t just another Java message broker,but rather a general messaging platform for various environments.
OpenWire is designed to be an efficient binary protocol in terms of network bandwidth and performance. This makes it an ideal choice for communication with socalled native clients usually written in Java, C, or C#. But all this efficiency comes at a cost, and in this case it’s the complexity of implementation.
STOMP (Streaming Text Oriented Messaging Protocol), on the other hand, is designed with entirely different requirements in mind. It’s a simple text-oriented protocol, similar to HTTP. You can see it as HTTP adapted to the messaging realm. This implies that it’s easy to implement the STOMP client in an arbitrary programming language. It’s even possible to communicate with the broker through the telnet session using STOMP.
ASCII null character (^@).
后续待补充......
参考书籍:ActiveMQ in Action
本文探讨了ActiveMQ作为通用消息平台的特点,并对比了OpenWire与STOMP两种协议。OpenWire适用于追求高效性能的场景,而STOMP则以其简单易用的特性受到欢迎,易于在各种编程语言中实现。
943

被折叠的 条评论
为什么被折叠?



