zzz is a framework for writing performant and reliable networked services in Zig. It currently only supports TCP as the underlying transport layer but

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-10-12 15:00:04

zzz is a framework for writing performant and reliable networked services in Zig. It currently only supports TCP as the underlying transport layer but allows for any arbitrary protocol to run on top.

zzz is currently alpha software and while it is generally stable, there is still a lot changing at a fairly quick pace and certain places where things are less polished.

It focuses on modularity and portability, allowing you to swap in your own implementations for various things. Consumers can provide both a protocol and an async implementation, allowing for maximum flexibility. This allows for use in standard servers as well as embedded/bare metal domains.

zzz is very fast. Through a combination of methods, such as allocation at start up and avoiding thread contention, we are able to extract tons of performance out of a fairly simple implementation. zzz is quite robust currently but is still early stage software. It's currently been running in production, serving my site.

We are nearly as fast as gnet (zzz is 2% slower at 1000 concurrent connections), the fastest plaintext HTTP server according to TechEmpower, while consuming only ~21% of the memory that gnet requires.

Leave a Comment