10 - Storage, Updates, and Config

Production apps need reliable persistence and safe update flows.

Data storage options

OptionGood for
JSON/TOML filesSimple settings
SQLiteStructured local data
Encrypted filesSensitive secrets/data

Config strategy

  • Defaults in code
  • User overrides in config file
  • Versioned config schema for migrations

App updates

  • Sign update artifacts
  • Verify signatures client-side
  • Roll out gradually
  • Keep rollback strategy

Example migration flow

  1. Detect config version on startup
  2. Backup old config
  3. Transform to new schema
  4. Validate and persist