Connection between Apache Kafka and JMS

前端 未结 3 629
逝去的感伤
逝去的感伤 2021-01-25 09:54

I was wondering could Apache Kafka communicate and send messages to JMS? Can I establish connection between them? For example, I\'m using JMS in my system and it should send mes

3条回答
  •  感动是毒
    2021-01-25 10:29

    Not directly. And the two are incomparable concepts. JMS is a vendor-neutral API specification of a messaging service.

    While Kafka may be classified as a messaging service, it is not compatible with the JMS API, and to the best of my knowledge there is no trivial way of adapting JMS to fit Kafka's use cases without making significant compromises.

    However, if your needs are simply to move messages between Kafka and a JMS-compliant broker, then this can easily be achieved by either writing a simple relay app that consumes from one and publishes onto another, or use something like Kafka Connect, which has pre-canned sinks for most data sources, including JMS brokers, databases, etc.

提交回复
热议问题