Thales Macedo Garitezi 2e1cb3d355 feat(external schema registry): add config load support преди 1 година
..
etc 541d03a0ba refactor(schema_registry): refactor schema registry app and modules преди 2 години
include 2e1cb3d355 feat(external schema registry): add config load support преди 1 година
priv 541d03a0ba refactor(schema_registry): refactor schema registry app and modules преди 2 години
src 2e1cb3d355 feat(external schema registry): add config load support преди 1 година
test 2e1cb3d355 feat(external schema registry): add config load support преди 1 година
BSL.txt 82403167c2 chore: update BSL license change date преди 2 години
README.md 541d03a0ba refactor(schema_registry): refactor schema registry app and modules преди 2 години
docker-ct a23c8845e4 ci: add confluent schema registry container преди 1 година
mix.exs fd86516ea3 feat(schema registry): add external schema registry support преди 1 година
rebar.config fd86516ea3 feat(schema registry): add external schema registry support преди 1 година

README.md

EMQX Schema Registry

EMQX Schema Registry for managing various of schemas for decoding/encoding messages.

To use schema in rule engine, a schema name should be passed to the SQL functions that decode/encode data, like:

SELECT
     schema_decode('sensor_notify', payload) as payload
FROM
     "message.publish"
WHERE
     topic = 't/1'

Using schema registry with rule engine

                      +---------------------------+
                     |                           |
 Events/Msgs         |                           |   Events/Msgs
 -------------------->           EMQX            |------------------>
                     |                           |
                     |                           |
                     +-------------|-------------+
                                   |
                             HOOK  |
                                   |
                     +-------------v-------------+           +----------+
                     |                           |   Data    |          |
                     |        Rule Engine        ------------- Backends |
                     |                           |           |          |
                     +------|-------------|------+           +----------+
                            |^            |^
                      Decode||            ||Encode
                            ||            ||
                     +------v|------------v|-----+
                     |                           |
                     |      Schema Registry      |
                     |                           |
                     +---------------------------+

Architecture

                              |              |
                       Decode |    [APIs]    | Encode
                              |              |
                              |              |           [Registry]
                       +------v--------------v------+
    REGISTER SCHEMA    |                            |
       INSTANCE        |                            |    +--------+
    ------------------->                            |    |        |
[Management APIs]      |       Schema Registry      ------ Schema |
                       |                            |    |        |
                       |                            |    +--------+
                       |                            |
                       +----------------------------+
                            /        |        \
                       +---/---+ +---|----+ +---\---+
                       |       | |        | |       |
      [Decoders]       | Avro  | |ProtoBuf| |Others |
                       |       | |        | |       |
                       +-------+ +--------+ +-------+

  • Register schema instance: adds a new instance of a schema of a certain type. For example, when the user may have several Avro or Protobuf schemas that they wish to use with different data flows.

Documentation

Contributing

Please see our contributing.md.

License

EMQ Business Source License 1.1, refer to LICENSE.