|
|
1 year atrás | |
|---|---|---|
| .. | ||
| etc | 2 years atrás | |
| include | 1 year atrás | |
| priv | 2 years atrás | |
| src | 1 year atrás | |
| test | 1 year atrás | |
| BSL.txt | 2 years atrás | |
| README.md | 2 years atrás | |
| rebar.config | 1 year atrás | |
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'
+---------------------------+
| |
Events/Msgs | | Events/Msgs
--------------------> EMQX |------------------>
| |
| |
+-------------|-------------+
|
HOOK |
|
+-------------v-------------+ +----------+
| | Data | |
| Rule Engine ------------- Backends |
| | | |
+------|-------------|------+ +----------+
|^ |^
Decode|| ||Encode
|| ||
+------v|------------v|-----+
| |
| Schema Registry |
| |
+---------------------------+
| |
Decode | [APIs] | Encode
| |
| | [Registry]
+------v--------------v------+
REGISTER SCHEMA | |
INSTANCE | | +--------+
-------------------> | | |
[Management APIs] | Schema Registry ------ Schema |
| | | |
| | +--------+
| |
+----------------------------+
/ | \
+---/---+ +---|----+ +---\---+
| | | | | |
[Decoders] | Avro | |ProtoBuf| |Others |
| | | | | |
+-------+ +--------+ +-------+
Refer to Introduction to Schema Registry for how to use the EMQX dashboard for configuring schemas.
Refer to EMQX Rules for the EMQX rules engine introduction.
Please see our contributing.md.
EMQ Business Source License 1.1, refer to LICENSE.