Models
Models
When Zilla interacts with the data inside of a message, it only parses the necessary metadata with standard formats. The processing of messages is simple and uses fewer resources to proxy data streams. A model
adds the type syntax or structure definitions that Zilla needs to deserialize the remaining message parts.
Primitive Models
Primitive models will have additional properties based on the type used.
model: string
encoding: utf_8
Schema Models
Schema-based models will reference a catalog to supply the binding with the configured model definition. Schemas referenced by their subject will fetch the latest version of that schema.
- Fetch the latest schema by
subject
.
model: avro
catalog:
my_catalog:
- subject: my_schema_subject
- Fetch the latest schema by the schema definition on a Kafka
topic
.
model: avro
catalog:
my_catalog:
- strategy: topic
- Fetch a specific schema by its schema ID.
model: avro
catalog:
my_catalog:
- id: 42
Validating a new message | Expose a different model format | http.kafka.karapace example