Squirix drops ASP.NET Core and gRPC for a custom binary protocol in 0.2.0-preview.1
Squirix, a distributed .NET cache, originally ran as an ASP.NET Core app using gRPC with shared Protobuf definitions. To cut overhead on cheap operations like reading small in-memory strings, the developer moved the SDK and inter-node traffic to a custom binary protocol over mutual TLS using raw sockets and SslStream. Health checks and metrics remain on HTTP/1.1 over TLS on a separate management address. The migration also replaced Protobuf with a custom codec featuring an eight-byte reply header and writes responses directly into the output pipe to avoid temporary allocations. Early CI measurements showed reduced managed allocations for read and write calls.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in