Avro
Avro
The avro
model in Zilla defines structured data using Apache Avro for serialization and deserialization in textual and binary formats. A view
maps Avro-encoded messages to a structured format, while a catalog
organizes schemas for consistency and reuse, ensuring proper data processing.
model: avro
view: json
catalog:
items-catalog:
- strategy: topic
version: latest
- subject: items-snapshots
version: latest
- id: 1
Configuration (* required)
view
view
enum
[json
]
Transforms the model from this data type to the Avro schema on produce and to this data type from the Avro schema on consume.
catalog
catalog*
Map<string, object[]>
To map defined catalog for schema retrieval based on catalog specific parameters. Any of the possible combination can be configured.
Property | Type | Description |
---|---|---|
catalog[].id* | integer | Define specific schema id to refer from catalog. |
catalog[].version | string | Default: latest |
catalog[].strategy* | enum [ topic ] | To determine the subject based on the specified strategy |
catalog[].subject* | string | Unique identifier for schema categorization in the catalog. |