AvroConvert 3.4.16
dotnet add package AvroConvert --version 3.4.16
NuGet\Install-Package AvroConvert -Version 3.4.16
<PackageReference Include="AvroConvert" Version="3.4.16" />
<PackageVersion Include="AvroConvert" Version="3.4.16" />
<PackageReference Include="AvroConvert" />
paket add AvroConvert --version 3.4.16
#r "nuget: AvroConvert, 3.4.16"
#:package AvroConvert@3.4.16
#addin nuget:?package=AvroConvert&version=3.4.16
#tool nuget:?package=AvroConvert&version=3.4.16
<p align="center"> <img alt="SolTechnology-logo" src="./docs/logo.png" width="200"> </p>
<h2 align="center"> AvroConvert </h2>
<p align="center"> <a> Rapid Avro serializer for C# .NET </a> </p>
<p align="center"> <a href="https://github.com/AdrianStrugala/AvroConvert"><img src="https://img.shields.io/github/stars/AdrianStrugala/AvroConvert.svg?label=%E2%AD%90%20Stars%20%E2%AD%90&color=yellow&style=flat&logo=github"></a> <a href="https://adrianstrugala.github.io/AvroConvert/"><img src="https://img.shields.io/badge/AvroConvertOnline-Try%20Now-blue.svg?logo=google-chrome"></a> <br> <a href="https://www.nuget.org/packages/AvroConvert"><img src="https://img.shields.io/nuget/v/AvroConvert.svg?logo=nuget"></a> <a href="https://github.com/AdrianStrugala/AvroConvert/actions/workflows/build&test.yml"><img src="https://github.com/AdrianStrugala/AvroConvert/actions/workflows/build&test.yml/badge.svg"></a> <a href="https://www.nuget.org/packages/AvroConvert"><img src="https://img.shields.io/nuget/dt/AvroConvert.svg?label=NuGet%20Downloads&logo=nuget&color=blue"></a> <br>
</p>
Docs
Apache Avro format documentation
First steps with Avro in the .NET
Benefits
Avro format combines readability of JSON and data compression of binary serialization.
| AvroConvert | Apache.Avro | Newtonsoft.Json | |
|---|---|---|---|
| Rapid serialization | ✔️ | ✔️ | ✔️ |
| Low memory allocation | ✔️ | ✔️ | ✔️ |
| Readable schema of data structure | ✔️ | ✔️ | ✔️ |
| Support for C# native objects (Dictionary, List, DateTime...) | ✔️ | ❌ | ✔️ |
| Built-in data encryption | ✔️ | ✔️ | ❌ |
| Support for compression codecs | Deflate<br/> Snappy<br/> GZip<br/> Brotli | Deflate | ❌ |
Introducing Avro to the projects brings three main benefits:
- Reduction of data size and storage cost
- Decrease of the communication time and the network traffic between microservices
- Increased security - the data is not visible in plain text format
Article describing Avro format specification and Avro API idea: https://www.c-sharpcorner.com/blogs/avro-rest-api-as-the-evolution-of-json-based-communication-between-mic
Conclusion: <br> Using Avro for communication between your services significantly reduces data size and network traffic. Additionally choosing encoding (compression algorithm) can improve the results even further.
Features
- Serialization
byte[] avroObject = AvroConvert.Serialize(object yourObject);
<br/>
- Deserialization
CustomClass deserializedObject = AvroConvert.Deserialize<CustomClass>(byte[] avroObject);
<br/>
- Read schema from Avro object
string schemaInJsonFormat = AvroConvert.GetSchema(byte[] avroObject)
<br/>
- Deserialization of large collection of Avro objects one by one
using (var reader = AvroConvert.OpenDeserializer<CustomClass>(new MemoryStream(avroObject)))
{
while (reader.HasNext())
{
var item = reader.ReadNext();
// process item
}
}
- Generation of C# models from Avro file or schema
string resultModel = AvroConvert.GenerateModel(avroObject);
- Conversion of Avro to JSON directly
var resultJson = AvroConvert.Avro2Json(avroObject);
Extended list: <br>
- Serialization of .NET object to Avro format
- Deserialization of Avro data to .NET object
- Other Avro data related operations
- Schema related
License
AvroConvert is licensed under the CC BY-NC-SA 3.0 license.
For commercial use, please purchase a license.
Contribution
We want to improve AvroConvert as much as possible. If you have any idea, found next possible feature, optimization opportunity or better way for integration, leave a comment or pull request.
Thank you a million to all the contributors to the library, including those that raise issues, started conversations, and those who send pull requests. Thank you!
These amazing people have contributed to AvroConvert:
<a href="https://github.com/AdrianStrugala/AvroConvert/graphs/contributors"> <img src="https://contrib.rocks/image?repo=AdrianStrugala/AvroConvert" /> </a>
Related Work
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- BrotliSharpLib (>= 0.3.3)
- IronSnappy (>= 1.3.1)
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.4)
- Portable.System.DateTimeOnly (>= 6.0.3)
-
net6.0
- BrotliSharpLib (>= 0.3.3)
- IronSnappy (>= 1.3.1)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on AvroConvert:
| Package | Downloads |
|---|---|
|
Memphis.Client
Memphis.Client SDK intended to make easy integration of Memphis into .NET projects |
|
|
SolTechnology.Avro.Kafka
Library containing extensions for Confluent Kafka platform |
|
|
SolTechnology.Avro.Http
Library containing functionalities, which enable communication between microservices using Avro data format |
|
|
OptimoveSdk.Engager.Integration
SDK for Engagers intergration with Optimove |
|
|
SolTechnology.Core.ApiClient
Resilient HTTP client wrapper with built-in Polly retry policies, exponential backoff, circuit breaker patterns, and Avro serialization support. Simplifies external API integration with production-ready resilience patterns. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 3.4.16 | 36,732 | 9/18/2025 | |
| 3.4.15 | 104,611 | 3/31/2025 | |
| 3.4.14 | 48,950 | 3/19/2025 | |
| 3.4.12 | 25,237 | 3/7/2025 | |
| 3.4.11 | 16,527 | 3/6/2025 | |
| 3.4.10 | 129,469 | 10/21/2024 | |
| 3.4.9 | 147,166 | 9/18/2024 | |
| 3.4.8 | 312,273 | 5/8/2024 | |
| 3.4.7 | 19,627 | 4/26/2024 | |
| 3.4.6 | 55,049 | 3/4/2024 | |
| 3.4.5 | 26,679 | 2/15/2024 | |
| 3.4.4 | 47,754 | 1/16/2024 | |
| 3.4.3 | 104,536 | 12/9/2023 | |
| 3.4.2 | 24,625 | 12/1/2023 | |
| 3.4.1 | 30,334 | 11/11/2023 | |
| 3.4.0 | 47,089 | 9/18/2023 | |
| 3.3.7 | 41,261 | 8/7/2023 | |
| 3.3.6 | 64,657 | 5/29/2023 | |
| 3.3.5 | 24,047 | 5/11/2023 | |
| 3.3.4 | 99,115 | 3/3/2023 | |
| 3.3.3 | 16,127 | 2/28/2023 | |
| 3.3.2 | 37,385 | 2/6/2023 | |
| 3.3.1 | 18,556 | 1/27/2023 | |
| 3.3.0 | 156,093 | 10/11/2022 | |
| 3.2.9 | 94,155 | 6/22/2022 | |
| 3.2.8 | 18,017 | 6/1/2022 | |
| 3.2.7 | 18,166 | 5/23/2022 | |
| 3.2.6 | 16,424 | 5/16/2022 | |
| 3.2.5 | 78,038 | 4/13/2022 | |
| 3.2.4 | 16,366 | 4/10/2022 | |
| 3.2.3 | 46,010 | 10/29/2021 | |
| 3.2.2 | 46,250 | 10/2/2021 | |
| 3.2.1 | 16,667 | 9/29/2021 | |
| 3.2.0 | 23,454 | 9/14/2021 | |
| 3.1.5 | 41,147 | 8/30/2021 | |
| 3.1.4 | 21,493 | 8/12/2021 | |
| 3.1.3 | 23,242 | 8/2/2021 | |
| 3.1.2 | 20,015 | 6/24/2021 | |
| 3.1.1 | 16,730 | 6/14/2021 | |
| 3.1.0 | 42,469 | 5/15/2021 | |
| 3.0.1 | 22,532 | 4/2/2021 | |
| 3.0.0 | 40,647 | 3/26/2021 | |
| 2.7.1 | 71,763 | 2/5/2021 | |
| 2.7.0 | 50,327 | 12/18/2020 | |
| 2.6.3 | 18,724 | 10/25/2020 | |
| 2.6.2 | 16,093 | 10/23/2020 | |
| 2.6.1 | 19,906 | 7/25/2020 | |
| 2.6.0 | 16,154 | 7/22/2020 | |
| 2.5.1 | 17,097 | 6/11/2020 | |
| 2.5.0 | 36,732 | 5/15/2020 | |
| 2.4.1 | 17,079 | 4/14/2020 | |
| 2.4.0 | 16,588 | 3/25/2020 | |
| 2.3.0 | 16,822 | 3/19/2020 | |
| 2.2.2 | 16,716 | 2/7/2020 | |
| 2.2.1 | 16,183 | 2/7/2020 | |
| 2.2.0 | 16,263 | 1/27/2020 | |
| 2.1.0 | 16,179 | 1/16/2020 | |
| 2.0.0 | 16,174 | 1/4/2020 | |
| 1.8.1 | 1,075 | 12/9/2019 | |
| 1.8.0 | 4,046 | 8/30/2019 | |
| 1.7.0 | 848 | 8/22/2019 | |
| 1.6.0 | 868 | 7/22/2019 | |
| 1.5.1 | 990 | 7/14/2019 | |
| 1.5.0 | 971 | 7/11/2019 | |
| 1.4.0 | 832 | 6/17/2019 | |
| 1.3.0 | 868 | 6/4/2019 | |
| 1.2.0 | 942 | 6/3/2019 | |
| 1.1.0 | 889 | 5/28/2019 | |
| 1.0.1 | 969 | 5/21/2019 | |
| 1.0.0 | 16,888 | 4/24/2019 | |
| 0.8.0 | 16,855 | 5/1/2019 | |
| 0.7.0 | 16,941 | 4/22/2019 | |
| 0.6.3 | 16,817 | 4/19/2019 | |
| 0.6.2 | 16,842 | 4/19/2019 | |
| 0.6.1 | 16,824 | 4/19/2019 | |
| 0.6.0 | 16,824 | 4/19/2019 | |
| 0.5.0 | 17,072 | 4/18/2019 | |
| 0.3.0 | 17,354 | 4/11/2019 | |
| 0.2.1 | 1,473 | 4/11/2019 | |
| 0.2.0 | 1,461 | 4/11/2019 | |
| 0.1.0 | 1,686 | 4/10/2019 |