Thales Macedo Garitezi 0020cf592f Merge remote-tracking branch 'origin/master' into build-with-mix-mkII 4 năm trước cách đây
..
docs 5440b431a1 fix: typo takeovered -> takenover 4 năm trước cách đây
etc 7c9c7b6a60 refactor(emqx_exhook): refactore exhook and add api module 4 năm trước cách đây
include 5440b431a1 fix: typo takeovered -> takenover 4 năm trước cách đây
priv 20ba9d285f feat(exhook): expose headers for on_messages_publish hook 4 năm trước cách đây
src 7c9c7b6a60 refactor(emqx_exhook): refactore exhook and add api module 4 năm trước cách đây
test 7c9c7b6a60 refactor(emqx_exhook): refactore exhook and add api module 4 năm trước cách đây
.gitignore 879c191e41 refactor(exhook): adapt to the hocon schmea 4 năm trước cách đây
README.md 879c191e41 refactor(exhook): adapt to the hocon schmea 4 năm trước cách đây
rebar.config 34d6dbca61 chore(mix): simplify build by using rebar3 for umbrella apps 4 năm trước cách đây

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