← All projects
Project record1 mention
Originally shared on Hacker News

CDN-hosted read-only SQLite replica for a Django site

This project prototypes making a read-only replica of a Django PostgreSQL site's 1 MB database in SQLite and hosting it on a CDN, so read-only replicas can pull it and the site runs more reliably. The database export takes only seconds, unlike the earlier static HTML rendering approach that took hours to reproduce the site.

Last shared
01 / The problem

What it addresses

The author's Django PostgreSQL site needed to be more reliable; static HTML renderings took several hours to reproduce the site.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. CDN-hosted read-only SQLite replica for a Django site

    This project prototypes making a read-only replica of a Django PostgreSQL site's 1 MB database in SQLite and hosting it on a CDN, so read-only replicas can pull it and the site runs more reliably. The database export takes only seconds, unlike the earlier static HTML rendering approach that took hours to reproduce the site.

    Problem: The author's Django PostgreSQL site needed to be more reliable; static HTML renderings took several hours to reproduce the site.

    Posted by @kukkeliskuu · Original source ↗

    Source text · @kukkeliskuu · · Source ↗

    I need to make a Django postgres site that I am running more reliable. Earlier I was experimenting with making static HTML renderings of the pages. That is certainly nice, but it took several hours to reproduce the site. I am currently prototyping making read-only replica of the database in SQLite (the database is only 1 MB) and hosting it on CDN, and then pulling that for the read-only replicas. The database export takes only some seconds.