10

thingsboard-pe-js-executor docker image 镜像

 3 years ago
source link: https://hub.docker.com/r/thingsboard-pe-js-executor
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
 docker pull thingsboard-pe-js-executor 


ThingsBoard is an IoT platform for data collection, processing, visualization, assets and devices management. It enables device connectivity via industry standard IoT protocols: MQTT, CoAP and HTTP. ThingsBoard combines scalability, fault-tolerance, and performance so you will never lose your data.

ThingsBoard Professional Edition is a closed-source advanced version of open-source ThingsBoard IoT platform with several significant value-add features.

ThingsBoard rule engine allows users to specify custom javascript functions to parse, filter and transform messages. Since those functions are user defined, we need to execute them in an isolated context to avoid impact on main processing. ThingsBoard provides a lightweight component written using Node.js to execute user defined JavaScript functions remotely to isolate them from the core rule engine components.

We recommend launching 20+ separate JavaScript Executors that will allow certain concurrency level and load balancing of JS execution requests. Each microservice will subscribe to “js.eval.requests” kafka topic as part of single consumer group to enable load balancing. Requests for the same script are forwarded to the same JS executor using built-in Kafka partitioning by key (key is a script/rule node id).

It is possible to define max amount of pending JS execution requests and max request timeout to avoid single JS execution blocking the JS executor microservice. Each ThingsBoard core service has an individual blacklist for JS functions and will not invoke blocked function more than 3(by default) times.

See official product page and msa architecture for more details.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK