Generate Avro code
This feature requires a paid subscription plan for oNote. |
If you are on the Essential plan, you can purchase a PowerUp for specific features. The Premium plan includes all present and future PowerUps. |
Generate Apache Avro code from an event model with defined schemas.
When you generate Avro from oNote, a zip archive file that contains an .avpr
file is downloaded to your Downloads directory.
An .avpr
file is a JSON
representation of an Avro protocol, which is a collection of schemas.
The Avro Protocol file defines the RPC interface for commands and read models. A use case for an Avro Protocol file is to define a gRPC client or server.
The generated archive also contains Avro Schema files for events, which can be used with the Confluent Schema Registry. Manage your Avro schemas in Confluent Control Center or Confluent Cloud.
For more information about Avro, see the Apache Avro documentation.
Prerequisites:
To generate Avro:
-
Open the model that has defined schemas.
-
From the left navigation menu, click
.
The Avro protocol file is generated in zip format to your Downloads directory.