Skip to content

Orthogonal Persistence

TODO: Write content for this page.

Explain orthogonal persistence on ICP. Cover how canister memory (heap) persists between calls, stable memory as the upgrade-safe storage layer, heap persistence in Motoko (automatic with enhanced orthogonal persistence), stable structures in Rust (StableBTreeMap, etc.), and the trade-offs between heap and stable memory. Compare with traditional database-backed backends.

  • guides/backends/data-persistence — practical implementation
  • languages/rust/stable-structures — Rust-specific patterns
  • guides/canister-management/lifecycle — persistence across upgrades