TransportR.Serialization.Arrow 0.6.0

dotnet add package TransportR.Serialization.Arrow --version 0.6.0
                    
NuGet\Install-Package TransportR.Serialization.Arrow -Version 0.6.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TransportR.Serialization.Arrow" Version="0.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TransportR.Serialization.Arrow" Version="0.6.0" />
                    
Directory.Packages.props
<PackageReference Include="TransportR.Serialization.Arrow" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TransportR.Serialization.Arrow --version 0.6.0
                    
#r "nuget: TransportR.Serialization.Arrow, 0.6.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TransportR.Serialization.Arrow@0.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TransportR.Serialization.Arrow&version=0.6.0
                    
Install as a Cake Addin
#tool nuget:?package=TransportR.Serialization.Arrow&version=0.6.0
                    
Install as a Cake Tool

TransportR - Apache Arrow Serialization

Moves Apache Arrow RecordBatch payloads over TransportR, as Arrow IPC.

Installation

dotnet add package TransportR.Serialization.Arrow

Usage

var client = new TransportRClientBuilder<RecordBatch>()
    .WithUrl("http://localhost:5252")
    .WithArrowSerialization()
    .Build();

WithArrowSerialization exists only on a builder carrying RecordBatch. Unlike the MessagePack, Protobuf and JSON packages, this serializer is not generic — Arrow carries record batches and nothing else — so a client built on the wrong item type does not compile rather than throwing on its first batch.

Two things this package decides for you

Every chunk is a complete IPC stream — schema, batches, end-of-stream marker. The protocol decodes chunks independently, buffers them when they arrive out of order and replays them after a cut, so a chunk depending on a schema sent once at the start would decode into nothing the moment any of that happened. Repeating the schema is the price of that independence, and it is small next to a batch.

This serializer owns the batches it is given and disposes them once written. A RecordBatch holds off-heap memory that something has to release, and this is the only place that knows the batch has been written. The sender does not re-serialize on a resend — the unacked buffer holds the serialized bytes — which is what makes disposing here safe rather than a use-after-free waiting for a retry. Batches you receive are yours, allocated through the MemoryAllocator you pass in, so a tracking pool can observe them.

Sizing the receive buffer — read this one

WithReceiveCapacity is unbounded by default, and the item dimension is close to meaningless here: ten thousand record batches is not a memory figure, it is somewhere between a few megabytes and a few hundred gigabytes. Bound the bytes.

.WithReceiveCapacity(maxBytes: 256 * 1024 * 1024)

Two things to know about that number:

  • It counts wire bytes — the IPC payload as it crossed the network, not the decoded buffers. With the default LZ4 compression the decoded batches are larger than the budget by whatever the codec saved; construct the serializer with compress: false and the two are close.
  • A chunk larger than the whole budget is still admitted into an empty buffer, so a batch bigger than you planned for throttles the transfer rather than stalling it.

The sender end is separate and also unbounded by default: WithMaxInFlightBatches counts batches, not bytes, because its slot is taken before serialization where the size is not yet known. Set it too: the receiver's bound stops the sender's network write, but not its serialization worker, so with the receiver bounded alone the serialized batches pile up in the sender instead (see "Backpressure" in ResilienceArchitecture.md).

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0 39 10/16/2026
0.5.1 84 10/12/2026
0.5.0 82 10/12/2026
0.4.0 86 10/10/2026
0.3.1 95 10/2/2026
0.3.0 87 10/2/2026
0.2.0 98 9/30/2026
0.1.0 97 9/27/2026