emqx/apps/emqx_exhook
JianBo He 66f69e7693 feat(exhook): make request_failed_action working 2021-08-12 10:40:24 +08:00
..
docs chore(exhook): upgrade to 0.6.2 2021-03-09 11:37:30 +08:00
etc feat(exhook): make request_failed_action working 2021-08-12 10:40:24 +08:00
include chore: update copyrights 2021-04-23 20:43:00 +02:00
priv feat(exhook): make request_failed_action working 2021-08-12 10:40:24 +08:00
src feat(exhook): make request_failed_action working 2021-08-12 10:40:24 +08:00
test feat(exhook): make request_failed_action working 2021-08-12 10:40:24 +08:00
.gitignore chore(apps): Sync again all apps 2020-12-07 21:30:21 +01:00
README.md chore(apps): Sync again all apps 2020-12-07 21:30:21 +01:00
rebar.config chore(ex): update grpc to 0.6.3 2021-08-10 17:59:36 +08: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