简体   繁体   English

从 Solace JCSMP 发送的消息可以在用其他语言编写的服务中使用吗

[英]Can messages sent from Solace JCSMP be consumed in services written in other languages

What exactly is Solace JCSMP?究竟什么是 Solace JCSMP?

Is it just a more suited JMS API for Solace?它只是更适合 Solace 的 JMS API 吗? What kind of other benefits does it have?它还有哪些其他好处?

For example, I would need to create a Java application using SolaceMQ that needs to send/receive messages over to/from AMQP protocol so that all different microservices written in different languages would be able to consume them.例如,我需要使用 SolaceMQ 创建一个 Java 应用程序,该应用程序需要通过 AMQP 协议发送/接收消息,以便所有用不同语言编写的不同微服务能够使用它们。 Is JCSMP right for that? JCSMP 适合吗? or is it just another JMS API that it only works between Java applications?或者它只是另一个JMS API,它只适用于Java应用程序之间?

What exactly is Solace JCSMP?究竟什么是 Solace JCSMP?

JCSMP is the Classic Java API for Solace's SMF (Solace Message Format) protocol. JCSMP 是用于 Solace 的 SMF(Solace 消息格式)协议的经典 Java API。 Note that Solace recently introduced a more modern messaging API for java devs using their event brokers that is just referred to as the "PubSub+ Messaging API for Java".请注意,Solace 最近使用他们的事件代理为 java 开发人员引入了更现代的消息传递 API,它被称为“Java 的 PubSub+ 消息传递 ZDB974238714CA8DE634A7CE1D083A14F”。 If you are new to Solace and using Java it may make sense to use that instead of JCSMP.如果您是 Solace 的新手并使用 Java,那么使用它而不是 JCSMP 可能是有意义的。

Is it just a more suited JMS API for Solace?它只是更适合 Solace 的 JMS API 吗? What kind of other benefits does it have?它还有哪些其他好处?

JCSMP allows developers to take advantage of the full feature set offered by the Solace Broker whereas the Solace JMS implementation only covers the features defined in the JMS specification itself. JCSMP 允许开发人员利用 Solace Broker 提供的完整功能集,而 Solace JMS 实现仅涵盖 JMS 规范本身中定义的功能。 For example, use of Solace features such as Replay or having Queues subscribe to Topics are not programmatically possible via the JMS API and would have to be done administratively if using JMS.例如,通过 JMS API 无法以编程方式使用 Replay 或让队列订阅主题等 Solace 功能,如果使用 JMS,则必须以管理方式完成。

For example, I would need to create a Java application using SolaceMQ that needs to send/receive messages over to/from AMQP protocol so that all different microservices written in different languages would be able to consume them.例如,我需要使用 SolaceMQ 创建一个 Java 应用程序,该应用程序需要通过 AMQP 协议发送/接收消息,以便所有用不同语言编写的不同微服务能够使用它们。 Is JCSMP right for that? JCSMP 适合吗? or is it just another JMS API that it only works between Java applications?或者它只是另一个JMS API,它只适用于Java应用程序之间?

Solace PubSub+ Event Brokers provide protocol translation between any of the protocols supported by the broker. Solace PubSub+ 事件代理提供代理支持的任何协议之间的协议转换。 It doesn't matter whether you are using SMF (which both Solace JMS and JCSMP use), MQTT, AMQP 1.0, etc. or what programming language you are using.无论您使用的是 SMF(Solace JMS 和 JCSMP 都使用)、MQTT、AMQP 1.0 等,还是使用什么编程语言都没有关系。 For example when you send a message using JCSMP you can receive it using a Java app using JMS, a Python app using AMQP and a Go app using MQTT.例如,当您使用 JCSMP 发送消息时,您可以使用使用 JMS 的 Java 应用程序、使用 AMQP 的 Python 应用程序和使用应用程序的 Z5F075AE3E1FTT9D0382BB8C4632991F96F 接收它。 The Solace Event Broker even has support for calling a RESTful webhook using it (Check out Solace "Rest Delivery Endpoints"). Solace Event Broker 甚至支持使用它调用 RESTful webhook(查看 Solace “Rest Delivery Endpoints”)。 Just a heads up that if you're using headers you'll want to checkout the Solace docs to see how they're mapped during protocol translation.请注意,如果您使用标头,您需要查看 Solace 文档以了解它们在协议转换期间是如何映射的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM