🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #6

VectorNNTP - a modern, high-performance NNTP server

#6
From: Chris Knipe
Date: Wed, 28 Oct 2026 07:58
160 lines
6875 bytes
Hi all,

I've been working on something I thought might be of interest to this
group: VectorNNTP, a ground-up NNTP server and storage stack written in
modern .NET/C# (Yes, it runs on Linux, and no, you don't need to install
the .NET Frameworks).

My fascination with NNTP and NNTP servers started more than a decade
ago. The sheer volume of data that has to be moved, processed and stored
still astonishes me to this day. It is one of the biggest and hungriest
data-plane applications that I personally know of - here we talk in 
petabytes, and laugh at terabytes.

More than 10 years ago, this journey started with a Python script running
under xinetd, that barely abided by RFC 3977. Today, that journey has
evolved into what I'm introducing here: VectorNNTP.

To my knowledge, there aren't many actively developed NNTP server
alternatives to INN/Diablo being designed around modern high-throughput,
asynchronous and distributed architectures. VectorNNTP is my attempt at
doing exactly that.

It is not production-ready yet, but development is moving very quickly.

The project is here:
https://github.com/VectorNNTP/VectorNNTPD

I've also started documenting the performance work here:
https://github.com/enteriaza/VectorNNTP.NNTPD/blob/master/PERFORMANCE.md

The interesting part is that this isn't just an NNTP protocol
implementation.

The architecture is being designed from the beginning for both vertical
and horizontal scaling.

The NNTP and storage layers are separate, with RabbitMQ and Redis used
for distributed coordination, transactional work distribution and shared
state. Storage servers can be scaled independently of NNTP servers, and
the architecture supports dynamic discovery, recovery, and clustered
operations.

The data path is deliberately byte-oriented.

It makes extensive use of asynchronous I/O, System.IO.Pipelines, bounded
pipelines, backpressure, Span<T>, ReadOnlySpan<T>, ArrayPool<T>,
stackalloc and explicit ownership transfer.

Large article bodies stay as bytes throughout the hot path rather than
being repeatedly converted into strings and managed object graphs.

One thing I particularly wanted was real-time integrity validation.

Every yEncoded article entering the article pipeline is actually
validated, including decoded length and CRC verification. Invalid or
corrupt yEnc content is rejected.

The validator does not allocate a decoded copy of the article just to
perform that validation.

There are also several hardware/vectorised hot paths. For example, the
yEnc IEEE CRC-32 path uses System.IO.Hashing.Crc32, which uses PCLMUL
vectorisation where supported by the underlying CPU.

Other vectorised paths include XXH3-64 article fingerprints, Message-ID
validation, yEnc line scanning and Date-header validation. BLAKE3 is used
for article identity derived from Message-ID.

The performance numbers are starting to get rather interesting.

I've been using an actual corpus of 10,610 Usenet articles totalling
7.27 GiB rather than generating synthetic byte arrays. Testing will
eventually be extended to a ~1TB corpus.

The corpus is overwhelmingly yEnc, which is intentional: that is
representative of the workload I'm interested in and what today's
usenet feeds accurately represents.

The BackFiller article-processing pipeline has gone through several
measured optimisation stages:

  Initial baseline              ~3,264 articles/sec
  Destuff optimisation          ~4,708 articles/sec
  Ownership optimisation        ~4,973 articles/sec
  Uninitialised allocation      ~5,056 articles/sec
  Hardware CRC                  ~6,415 articles/sec

The latest figure is the mean of three independent 1000-concurrency by
100,000-article runs.

The hardware CRC change alone took the long-run result from 5,056 to
6,415 articles/sec, approximately a 27% improvement.

That is approximately 4.4 GiB/sec of article data through the measured
in-process BackFiller pipeline.

Interestingly, CPU utilisation actually dropped:
  CPU cores busy       22.59 -> 20.63
  CPU time/article     4.47ms -> 3.22ms

Allocation remained essentially unchanged at about 727 KiB/article.

So this isn't a case of stopping validation to get faster. The same
integrity work is being performed; the expensive CRC portion is simply
being done considerably more efficiently.

I don't want to pretend that 6,415 articles/sec is some universal NNTP
performance number.

It isn't.

It is a specific real-world workload through the BackFiller processing
pipeline on one machine. The NNTPD benchmarks measure different
workloads and aren't directly comparable (yet).

That's why I'm documenting the measurements properly: what was measured,
with what corpus, at what concurrency, and what the number actually
means.

There is still plenty left to do (A distributed OverviewDB being one
of the biggest remaining challenges).

The NNTP protocol surface is still being expanded and hardened, the
distributed storage architecture is evolving, and the production
operational story isn't finished.

But the foundations are already being exercised against real world
binary and text feeds.

Why build another NNTP server?

Because NNTP is still an interesting protocol, while much of the
traditional server architecture predates the hardware and software
environment we have today.

We now have very high-speed network interfaces, large multicore systems,
NVMe, enormous SATA storage pools, asynchronous I/O, hardware-accelerated
primitives, distributed message buses and horizontally scalable services.

I wanted to see what an NNTP server designed from scratch around those
assumptions would look like.

That's what VectorNNTP is.

It's still early days, but it is getting rather interesting.

I'd be particularly interested in feedback from people who have operated
NNTP infrastructure at scale, especially around protocol edge cases,
scaling approaches, storage architecture, or anything I've overlooked.

Repository:
https://github.com/enteriaza/VectorNNTP.NNTPD
https://github.com/VectorNNTP/VectorNNTPD

Performance measurements:
https://github.com/enteriaza/VectorNNTP.NNTPD/blob/master/PERFORMANCE.md

--
Chris
Technical Details
Message-ID: <vectornntp-announcement-20261028@opticnetworks.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntpd01.opticnetworks.net!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntpd01.opticnetworks.net!not-for-mail
From: Chris Knipe <cknipe@opticnetworks.net>
Newsgroups: news.software.nntp
Subject: VectorNNTP - a modern, high-performance NNTP server
Date: Wed, 28 Oct 2026 09:58:00 +0200
Message-ID: <vectornntp-announcement-20261028@opticnetworks.net>
Organization: OpticNetworks
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit