Where the Data Lives When Your API Is Online

Render's free web service wipes its files every time it redeploys, restarts or spins down, so a SQLite file there holds demo data that the API seeds at startup when the database is empty, and keeping data for real takes a persistent disk or a hosted database such as PostgreSQL, which cost money.

By

Updated

Cheat sheet: Where the Data Lives When Your API Is Online
Category
FastAPI
Level
Journeyman
Tags
Ephemeral Filesystem, fastapi, Persistent Disk, PostgreSQL, rest-api, Seed Data