Deploying a Rust CDN with LiteFS | Distributed SQLite Across Regions

In this live coding stream, I work on deploying a Rust CDN (content delivery network) using LiteFS to distribute an SQLite database across regions. We start by deploying an origin server to Paris using Then we deploy the CDN cache itself to regions in New Jersey and London, and connect it to the origin server in Paris. We implement LiteFS, a distributed filesystem, to replicate our SQLite database manifest across nodes. This allows each CDN node to know what content is cached in other regions. I run into some challenges getting write forwarding to work properly on replica regions, so this will be a focus for next time. Overall we make good progress on getting the CDN deployed and caching content, with the database manifest replicated globally. Next up is improving write support and being able to populate the cache from the origin when needed. This is a fun dive into deploying a globally distributed Rust web service, using technologies like, LiteFS, SQLite and more. If you're interested in Rust web development and distributed systems, check out the video! Links: Part 1: Part 2: Part 3: Part 4: Part 5: Part 6:

coreyja weekly

My weekly newsletter tailored at developers who are eager to grow with me!
Every week will be unique, but expect topics focusing around Web Development and Rust