Edge Computing with Cloudflare Workers
Building a serverless, post-quantum Matrix homeserver

Building a serverless, post-quantum Matrix homeserver

1/27/2026 · Nick Kuntz

What this post added

This post details the porting of a Matrix homeserver (Synapse) to Cloudflare Workers. It outlines the architectural changes, including the replacement of PostgreSQL with D1, Redis with KV, and filesystem with R2. It highlights the use of Durable Objects for atomic operations and state resolution, and the implementation of a full OAuth provider. A key contribution is the integration of post-quantum cryptography (X25519MLKEM768) for TLS connections, providing enhanced security for the serverless homeserver.

Read the original post ↗