A SQLite-backed Durable Object binds execution and storage to an instance addressed by an identifier. Requests to that object read or change its state, which survives instance restarts.
The demo increments A and B separately and restores A after restart. Cross-object queries and global joins may need another data design.
When to use
Consider it for state naturally grouped by a user, room, or session key.