Building a Tiny CDN With pyinfra and Chimera LinuxPermalink

On my personal blog:

I added caching so that the application only renders a page once. After that, the cached render result is reused for subsequent responses. These cached responses are typically generated in about a third of a millisecond (~323µs on average), which I was pretty happy with.

The problem was, for my convenience the server hosting Linked List was located in Australia, where I live. Unfortunately most other people do not live in Australia, and we’re a long way from everywhere.

A bit of behind the scenes information on how I built a tiny CDN for Linked List by adding some cheap additional servers orchestrated with pyinfra.