Zaiming Shi d8ad7a0edb chore(emqx_exhook): Ensure semver app vsn 5 年 前
..
docs 2fda0a1565 chore(apps): Sync again all apps 5 年 前
etc 2fda0a1565 chore(apps): Sync again all apps 5 年 前
include 2fda0a1565 chore(apps): Sync again all apps 5 年 前
priv 2fda0a1565 chore(apps): Sync again all apps 5 年 前
src d8ad7a0edb chore(emqx_exhook): Ensure semver app vsn 5 年 前
test 2fda0a1565 chore(apps): Sync again all apps 5 年 前
.gitignore 2fda0a1565 chore(apps): Sync again all apps 5 年 前
README.md 2fda0a1565 chore(apps): Sync again all apps 5 年 前
rebar.config d360e7ead1 feat(exproto): use client streaming APIs for handler 5 年 前

README.md

emqx_exhook

The emqx_exhook extremly enhance the extensibility for EMQ X. It allow using an others programming language to mount the hooks intead of erlang.

Feature

  • Based on gRPC, it brings a very wide range of applicability
  • Allows you to use the return value to extend emqx behavior.

Architecture

EMQ X                                      Third-party Runtime
+========================+                 +========+==========+
|    ExHook              |                 |        |          |
|   +----------------+   |      gRPC       | gRPC   |  User's  |
|   |   gPRC Client  | ------------------> | Server |  Codes   |
|   +----------------+   |    (HTTP/2)     |        |          |
|                        |                 |        |          |
+========================+                 +========+==========+

Usage

gRPC service

See: priv/protos/exhook.proto

CLI

Example

Recommended gRPC Framework

See: https://github.com/grpc-ecosystem/awesome-grpc

Thanks