Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在发布到队列/主题时实现文本消息压缩(不修改服务器或消费者)?我想知道现有的Java STOMP 客户端或CPP STOMP 客户端(ActiveMQ-CPP)是否支持消息压缩?
谢谢你。
当前的 Stomp 规范没有为消息体数据定义任何标准化的压缩形式。这意味着无法创建可靠且可互操作的 Stomp 客户端来压缩数据。您当然可以自己压缩数据并设置一个标头,告诉您的各种客户端的内容类型很像 HTTP 规范概述。