Git Product home page Git Product logo

iot-mqtt-subcriber-routing's Introduction

MQTT Routing for Subcriber

Why we have this project ?

enhanced features in the context of an IoT project implemented in C# using MQTT as the core protocol for processing streaming data from IoT devices.

The project architecture involves the following components:

                  Authenticate HTTP Client
                            ^
                            |
                            |          -> Subcriber Processor via C# dotnet 
publisher IOT device ->   Broker EMQX  -> Subcriber Processor via C# dotnet -> Click house DB 
                            |           -> Subcriber Processor via C# dotnet    
                            |
                            |
                            V
                    Application Mobile 

While working with the MQTTNet library to connect to MQTT, it was found that the library lacks built-in support for routing and serialization, which led to frustration. Consequently, a decision was made to create a custom project that fulfills the required functionalities

Package Architecture

The package architecture revolves around the concept of a multiplexer, which enables efficient routing of MQTT events based on topics to their respective handlers. The structure is as follows:

                          -> Topic 3,4 -> handler 3
MQTT event -> Multiplexer -> Topic 2,3 -> handler 2 , handler 4
                          -> Topic 1,b -> Handler 1

Goal /Feature

  • Fast and efficient multiplexer routing utilizing a Radix implementation
  • Support for topic path parameters
  • Dependency Injection in controller constructors, akin to ASP.NET
  • Event queuing
  • Protobuf and JSON serialization options (depending on use case)
  • Ability to handle multiple MQTT clients concurrently (optional feature)
  • Comprehensive unit testing

PS

Please note that the project is currently in its initial stages, with only the routing functionality implemented so far.

iot-mqtt-subcriber-routing's People

Contributors

hotrungnhan avatar

Watchers

 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.