Serverless read-only databases with Datasette

Serverless providers such as Google Cloud Run and Vercel provide robust, scalable, inexpensive hosting for stateless web applications.

Databases are usually provided as separate add-ons to serverless hosting. If your data is static or changes infrequently, Datasette can be used to unlock the benefits of serverless hosting without needing a separate hosted database.

Datasette can be used to implement the Baked Data pattern, where any structured data needed by your application is bundled and deployed with the application code itself, as part of the same container.

This site is an example of Baked Data in action: is deployed to Google Cloud Run by build scripts running on GitHub Actions.

Many of the Datasette examples listed on this site are also deployed in this manner.

More uses for Datasette