JianBo He 5d4604701c chore: fix elvis warnings 4 سال پیش
..
docs 5440b431a1 fix: typo takeovered -> takenover 4 سال پیش
etc 143c685452 feat(exhook): expose process pool_size for grpc client 4 سال پیش
include 5440b431a1 fix: typo takeovered -> takenover 4 سال پیش
priv 20ba9d285f feat(exhook): expose headers for on_messages_publish hook 4 سال پیش
src 5d4604701c chore: fix elvis warnings 4 سال پیش
test 34cc8cc7f5 chore: put the pool_size default value to avoid hot upgrade failure 4 سال پیش
.gitignore 879c191e41 refactor(exhook): adapt to the hocon schmea 4 سال پیش
README.md 879c191e41 refactor(exhook): adapt to the hocon schmea 4 سال پیش
rebar.config 2b7c311807 chore: upgrade grpc to 0.6.4 4 سال پیش

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