lafirest 6d87db80c1 Merge pull request #6772 from lafirest/fix/exhook_lint 4 rokov pred
..
docs 5440b431a1 fix: typo takeovered -> takenover 4 rokov pred
etc 10b110447c chore(exhook): change root name emqx_exhook > exhook 4 rokov pred
include 9a6a8a778b feat(emqx_exhook): add metrics 4 rokov pred
priv 9f7b513a3f chore: fix copyright update script to include more files 4 rokov pred
src 6d87db80c1 Merge pull request #6772 from lafirest/fix/exhook_lint 4 rokov pred
test 9a6a8a778b feat(emqx_exhook): add metrics 4 rokov pred
.gitignore 879c191e41 refactor(exhook): adapt to the hocon schmea 4 rokov pred
README.md 879c191e41 refactor(exhook): adapt to the hocon schmea 4 rokov pred
rebar.config 34d6dbca61 chore(mix): simplify build by using rebar3 for umbrella apps 4 rokov pred

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