---
title: "Introducing the (blazing fast!) native TCP client for .NET"
description: "ClickHouse's new experimental .NET client in the ClickHouse.Driver package speaks the native TCP protocol and the columnar Native format."
url: "https://swe.quest/articles/introducing-the-blazing-fast-native-tcp-client-for-net-f4669cab73398c15"
canonical: "https://clickhouse.com/blog/introducing-the-blazing-fast-native-tcp-client-for-net"
source: "ClickHouse"
published: "2026-10-16"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 16
tags: ["dotnet","performance","memory-management","analytics","networking"]
---

# Introducing the (blazing fast!) native TCP client for .NET

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-10-16, 16 min read, Deep dive. Original: [https://clickhouse.com/blog/introducing-the-blazing-fast-native-tcp-client-for-net](https://clickhouse.com/blog/introducing-the-blazing-fast-native-tcp-client-for-net)

## Summary

ClickHouse's new experimental .NET client in the ClickHouse.Driver package speaks the native TCP protocol and the columnar Native format. This removes the row/column conversions that HTTP with RowBinary forces on both server and client. It is built on zero-copy, pooled buffers and MemoryMarshal reinterpretation, with compiled expression-tree mappers for POCOs and SIMD where wire and .NET layouts differ (e.g. UUID). The result is 1.5-2x faster reads and inserts than HTTP, up to 1.1M rows/s on a single stream, and allocations for a 1M-row read cut from 1.6 GB to 6 MB. The tradeoffs: no ADO.NET/ORM support, text-only JSON, borrowed blocks valid for one iteration, and little gain on the object\[\] tier.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [.NET](https://swe.quest/tags/dotnet.md) (Languages)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Memory management](https://swe.quest/tags/memory-management.md) (Compilers & runtimes)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)

## Prerequisites

- C# Span and memory APIs ([easy posts on .NET](https://swe.quest/tags/dotnet.md?difficulty=easy))
- columnar data formats
- ClickHouse basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse, ClickHouse.Driver, Native protocol, RowBinary, MemoryMarshal, ArrayPool, SIMD, NativeAOT

## Related posts

- [ClickHouse.Driver 1.0.0: The Official .NET Client Hits Stable](https://swe.quest/articles/clickhouse-driver-1-0-0-the-official-net-client-hits-stable-0f7ef38e134a4666.md): ClickHouse · 2026-03-02 · Medium · 5 min read · .NET, Analytics & OLAP, Developer tools
  ClickHouse.Driver 1.0.0 is the first stable release of the official .NET client for ClickHouse, committing to a semver-stable public API.
- [What's new in the ClickHouse .NET Driver: the road from 1.0 to 1.3](https://swe.quest/articles/what-s-new-in-the-clickhouse-net-driver-the-road-from-1-0-to-1-3-1a08f28aa123b341.md): ClickHouse · 2026-08-26 · Medium · 14 min read · .NET, Analytics & OLAP, API design, Databases
  ClickHouse's .NET driver versions 1.1 through 1.3 rework the insert, read and parameter paths.
- [ClickHouse Input format matchup: Which is fastest & most efficient](https://swe.quest/articles/clickhouse-input-format-matchup-which-is-fastest-most-efficient-9abb3bd9e520be60.md): ClickHouse · 2025-02-26 · Medium · 22 min read · Analytics & OLAP, Performance engineering, Databases, Data pipelines
  FastFormats is a benchmark that measures ClickHouse server-side ingestion time and hardware efficiency across roughly 60 input formats, crossed with batch size, pre-sorting and compression, using the ClickBench web analytics dataset over the HTTP interface.
- [Designing the new async-native ClickHouse Python client](https://swe.quest/articles/designing-the-new-async-native-clickhouse-python-client-686db4668ab2ae45.md): ClickHouse · 2026-03-16 · Medium · 12 min read · Python, Concurrency, Performance engineering, Databases
  The new async-native clickhouse-connect client replaces the legacy thread-pool wrapper with aiohttp for network I/O and a half-sync/half-async design: an async producer streams response chunks into a bounded queue (10 chunks of up to 1MB) while the existing synchronous Native-format parser consumes them in an executor thread, with the same queue reversed for inserts.
- [Why ClickHouse Cloud wins at real-time analytics](https://swe.quest/articles/why-clickhouse-cloud-wins-at-real-time-analytics-ff3bf2806ccb7be7.md): ClickHouse · 2026-10-28 · Medium · 21 min read · Analytics & OLAP, Storage engines, Query engines, Performance engineering, Cost optimization
  In the CostBench streaming benchmark (113.2 billion stock quotes ingested at about 1M rows/s while queries ran), ClickHouse Cloud scored 412× to 1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery and Redshift Serverless.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
