emqx/apps/emqx_rule_engine
Xinyu Liu 21fe7f01ee
Merge pull request #7624 from DDDHuang/fix_api_params
Fix api params
2022-04-18 09:33:22 +08:00
..
etc chore(conf): EMQ X -> EMQX in conf files 2022-02-16 17:50:41 +01:00
include fix(dialyzer): update the specs for the rule() 2022-03-16 10:13:16 +08:00
src Merge pull request #7624 from DDDHuang/fix_api_params 2022-04-18 09:33:22 +08:00
test feat: add rule-engine functions 2022-04-15 18:02:24 +08:00
.gitignore chore(apps): relocate some apps 2021-02-19 11:24:41 +01:00
README.md chore: rename EMQX Broker to just EMQX 2022-02-19 12:51:34 +01:00
rebar.config chore: major mode file variable for Emacs 2022-01-13 15:53:47 +08:00

README.md

emqx-rule-engine

IoT Rule Engine

Concept

iot rule "Rule Name"
  when
     match TopicFilters and Conditions
  select
    para1 = val1
    para2 = val2
  then
    take action(#{para2 => val1, #para2 => val2})

Architecture

          |-----------------|
 Pub ---->| Message Routing |----> Sub
          |-----------------|
               |     /|\
              \|/     |
          |-----------------|
          |   Rule Engine   |
          |-----------------|
               |      |
        Backends Services Bridges

SQL for Rule query statement

select id, time, temperature as t from "topic/a" where t > 50;