blog.cloudflare.com 1/27/2026, 7:30:41 PM · via preferred

Building a serverless, post-quantum Matrix homeserver

Building a serverless, post-quantum Matrix homeserver

CLOUDFLARE has detailed how it ported a Matrix homeserver to Cloudflare Workers to create a serverless, post-quantum proof system. Starting from Synapse, the team swapped PostgreSQL for D1, Redis for KV, the filesystem for R2, and used Durable Objects for atomic, real-time coordination, with the core Matrix protocol logic implemented in TypeScript using the Hono framework.

The result is a proof-of-concept where operations disappear, costs scale to near zero when idle, and every connection is protected by post-quantum cryptography by default, with TLS under X25519MLKEM768 negotiated on each connection.

In a side-by-side comparison, traditional VPS deployments cost $20–$50 monthly when idle or active, whereas Workers run at less than $1 idle and $3–$10 when active, with latency of 100–300ms for traditional deployments versus 20–50ms on Workers, and deployment taking seconds rather than hours. The piece emphasises that this approach could extend to other stateful protocols and represents a shift towards owning data without bearing infrastructure management, as of 27 January 2026. according to Cloudflare

View full article

Article by CyberSIXT