Thingsboard 数据流向

前提

      要想了解thingsboard数据流向,必须掌握以下几点

      1 生产消费者模式

      2 actor设计模式

      3 队列

      4 netty,mqtt以及websocket基本知识

结构

     借鉴官网原图

 

 简单来写:  device -> transport->queue (ruleEngine,DeviceActor 通过调用不同生产者: ruleEngineMsgProducertbCoreMsgProducer)->consumer(ruleEngineConsumer、tbCoreConsumer)->Actor(AppActor->TenatActor->DeviceActor)|EngineActor

 注意: 默认为内存队列,代码:线程异步调用、回调函数比较多

posted on 2022-08-18 18:12  爱老虎哟  阅读(165)  评论(0编辑  收藏  举报

导航