Path: redb-route/redb.Route.DataFormats.Avro/README.md Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.DataFormats.Avro/README.md ---- # redb.Route.DataFormats.Avro > Documentation and articles: Apache Avro (binary encoding) as a redb.Route data format, on [Chr.Avro](https://github.com/ch-robinson/dotnet-avro): the schema is built from the CLR type, so a plain POCO round-trips without a `.avsc` file; an explicit schema can be given as JSON. ```csharp .MarshalAvro() // POCO → Avro binary, ContentType application/avro .UnmarshalAvro() .MarshalAvro(o => o.Schema = File.ReadAllText("order.avsc")) // explicit writer schema context.AddAvroDataFormat(); // then Marshal("application/avro") / Unmarshal("application/avro") // Confluent Schema Registry wire format: magic byte 0 + schema id (big-endian int32) .MarshalAvro(o => { o.ConfluentWireFormat = true; o.SchemaId = 7; }) .UnmarshalAvro(o => o.ConfluentWireFormat = true) ``` Schema Registry itself (lookup, registration, evolution by id) is out of scope of the format.