emqx/apps/emqx_exhook
JianBo He d360e7ead1 feat(exproto): use client streaming APIs for handler
- Use the gRPC client streaming APIs to improve the
  ConnectionHandler server performance.
- Change the 'conn' field type to term binary
2021-01-15 09:47:56 +08:00
..
docs chore(apps): Sync again all apps 2020-12-07 21:30:21 +01:00
etc chore(apps): Sync again all apps 2020-12-07 21:30:21 +01:00
include chore(apps): Sync again all apps 2020-12-07 21:30:21 +01:00
priv chore(apps): Sync again all apps 2020-12-07 21:30:21 +01:00
src Merge remote-tracking branch 'origin/dev/v4.3.0' into umbrella-fix-build 2020-12-11 08:55:57 +01:00
test chore(apps): Sync again all apps 2020-12-07 21:30:21 +01: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 feat(exproto): use client streaming APIs for handler 2021-01-15 09:47:56 +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