Coder Social home page Coder Social logo

ttgzs / mqtt-to-kafka Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emqx/mqtt-to-kafka

0.0 0.0 0.0 14 KB

Streaming IoT data into Confluent/Kafka using MQTT and EMQX | MQTT Kafka Integration

License: Apache License 2.0

Makefile 100.00%

mqtt-to-kafka's Introduction

mqtt-to-kafka

Streaming IoT data into Confluent/Kafka using MQTT and EMQX | MQTT Kafka Integration.

Introduction

This is a demo project that shows how to use EMQX and Kafka to build a streaming data pipeline. The project uses MQTTX CLI to simulate the MQTT client to publish vehicle data to EMQX, and then uses EMQX Data Integration to streaming the data to Kafka.

How to use

Please make sure you have installed the docker, and just run the make command to start all of the containers.

You can see the message from Kafka consumer:

{"vin":"EDF226K7LZTZ51222","speed":39,"odometer":68234,"soc":87,"elevation":4737,"heading":33,"accuracy":24,"power":97,"shift_state":"D","range":64,"est_battery_range":307,"gps_as_of":1681704127537,"location":{"latitude":"83.3494","longitude":"141.9851"},"timestamp":1681704127537}

Scenario

Kafka and MQTT are complementary technologies that enable end-to-end integration of IoT data. By integrating Kafka and MQTT, businesses can establish a robust IoT architecture that guarantees reliable connectivity and efficient data exchange between devices and IoT platforms.

Some of the prominent use cases where this architecture is applicable include Telematics and Vehicle Data Analytics, Intelligent Traffic Management, Remote Diagnostics, Energy Efficiency, and Environmental Impact and Predictive Maintenance.

Prerequisites

Name Version Description
EMQX Enterprise 5.0.3+ MQTT broker used for message exchange between MQTT clients and the Kafka system.
EMQX Exporter 0.1 Prometheus exporter for EMQX
MQTTX CLI 1.9.3+ Command-line tool used to generate simulated data for testing.
Prometheus v2.44.0 Open-source systems monitoring and alerting toolkit.
Grafana 9.5.1+ Visualization platform utilized to display and analyze the collected data.
Kafka 2.8.0+ Distributed streaming platform for collecting, storing, and processing data.

Note: In this project we refer to kafka-docker.

License

Apache License 2.0

mqtt-to-kafka's People

Contributors

emqplus avatar logo306142054 avatar rory-z avatar wivwiv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.