简体   繁体   English

高效的 MQTT 代理到 Kafka 代理的桥接

[英]Efficient MQTT broker to Kafka broker bridging

I need to stream incoming sensor data from Mqtt broker to Kafka broker.我需要将传入的传感器数据从 Mqtt 代理传输到 Kafka 代理。 What are the most efficient tools to do this ?什么是最有效的工具来做到这一点?

There are lots of brokers and some of them provide almost the same features.有很多经纪人,其中一些提供几乎相同的功能。

Is there any broker that provides Kafka bridge plugin in an efficient way ?是否有任何代理以有效的方式提供 Kafka 桥接插件?

There is an MQTT Kafka Connect connector for that.有一个 MQTT Kafka Connect 连接器。

https://github.com/evokly/kafka-connect-mqtt http://docs.datamountaineer.com/en/latest/mqtt.html https://github.com/evokly/kafka-connect-mqtt http://docs.datamountaineer.com/en/latest/mqtt.html

I have never used it but maybe it's worth to give it a try.我从未使用过它,但也许值得一试。 let me know ;)让我知道;)

As alternative to Kafka Connect and a MQTT connector, you could also use the Confluent MQTT Proxy for this.作为 Kafka Connect 和 MQTT 连接器的替代方案,您也可以为此使用 Confluent MQTT 代理。 If your only reason to have a MQTT Broker, then this is the much easier and more lightweight setup because you do not need a MQTT Broker this way.如果您拥有 MQTT Broker 的唯一原因,那么这是更容易和更轻量级的设置,因为您不需要这样的 MQTT Broker。 MQTT Proxy works the same way like Kafka' REST Proxy. MQTT 代理的工作方式与 Kafka 的 REST 代理相同。

See this example of how to combine MQTT with Apache Kafka .请参阅此示例,了解如何将 MQTT 与 Apache Kafka 结合使用 Or go directly to the Github code: " Deep Learning UDF for KSQL for Streaming Anomaly Detection of MQTT IoT Sensor Data ".或者直接上 Github 代码:“ Deep Learning UDF for KSQL for Streaming Anomaly Detection of MQTT IoT Sensor Data ”。

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

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