emqx/apps/emqx_exhook
JianBo He b1959086d9 chore: fix elvis warnings 2022-01-12 13:51:37 +08:00
..
docs fix: typo takeovered -> takenover 2021-12-07 16:06:23 +01:00
etc chore(exhook): change root name emqx_exhook > exhook 2022-01-12 13:51:37 +08:00
include chore: update copyright 2022-01-05 20:55:00 +01:00
priv/protos chore: fix copyright update script to include more files 2022-01-06 08:44:35 +01:00
src chore: fix elvis warnings 2022-01-12 13:51:37 +08:00
test chore(exhook): change root name emqx_exhook > exhook 2022-01-12 13:51:37 +08:00
.gitignore refactor(exhook): adapt to the hocon schmea 2021-08-03 14:06:58 +08:00
README.md refactor(exhook): adapt to the hocon schmea 2021-08-03 14:06:58 +08:00
rebar.config chore(mix): simplify build by using rebar3 for umbrella apps 2021-12-22 09:40:01 -03:00

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

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

Thanks