emqx/apps/emqx_rule_engine
Zaiming (Stone) Shi d6f7ffec3c
Merge pull request #6881 from zmstone/refactor-upgrade-hocon-0.23.0
refactor: upgrade to hocon 0.23.0
2022-01-27 15:48:23 +01:00
..
etc feat(rules): support configure rules in config file 2021-10-14 15:09:37 +08:00
include chore: update copyright 2022-01-05 20:55:00 +01:00
src Merge pull request #6881 from zmstone/refactor-upgrade-hocon-0.23.0 2022-01-27 15:48:23 +01:00
test docs: fix typos 2022-01-27 12:29:38 +01:00
.gitignore chore(apps): relocate some apps 2021-02-19 11:24:41 +01:00
README.md chore: fix copyright update script to include more files 2022-01-06 08:44:35 +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 for EMQ X Broker.

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;