Run one service. Store data on each customer’s account.
Give each customer separate SQLite storage for your service. It counts toward their plan, and they can download or delete it from their account.
One service, storage per caller.
-
Every caller gets their own.
One call reads a different SQLite file for each account. The host picks it from the verified caller, never from an argument.
-
Their storage, their plan.
Each caller’s storage counts toward their own plan. Your service holds the same storage at ten callers or ten thousand.
-
They keep what they wrote.
Callers download or delete their file from Storage. It stays theirs after your service is deleted.
crab.toml
[storage.caller]
migrations = "caller" src/lib.rs
caller_storage::set("timezone", &zone)?;
let timezone: Option<String> = caller_storage::get("timezone")?;