You are here. See how this question connects to other ideas.
Select a node to open its page · Expand to read within the map
One question
How do FS, JSON, KV and DID Space differ?
Common operations preserve differences in location, structure and persistence.
Start with the same report
| Provider | Useful mental model | Do not infer |
|---|---|---|
| FS | An allowed local filesystem scope | Access to every host path |
| JSON | Addressable nodes in JSON structure | Database transactions for every field update |
| KV | Values organized by keys | Identical ordering or transactions across backends |
| DID Space | Resources in an owned data space | Permission merely from knowing its DID |
Reading a report title may use similar AFS operations while the value comes from a parsed file, an object field or a remote space. Applications rely on declared, implemented behavior, not the provider’s name.
Before replacing a backend
List the capabilities consumers actually depend on: persistence, pagination, conditional writes, notifications and error categories. Check both successful and rejected operations after replacement. A single in-memory instance cannot establish cross-process persistence or concurrency correctness.
Exercise: after replacing JSON with KV, which task references should remain stable? Which ordering and update conditions need verification? Answer from the contract rather than assuming automatic compatibility.
Place the report in an actual store
These are four illustrative representations of one business object, not automatically shared provider paths:
- FS: an allowed directory contains
report.json, with title and status in the file. - JSON: a document contains a
reportobject with atitlefield. - KV: the key
reportidentifies a value containing title and status. KV means key-value storage. - DID Space: the report lives in a data space with identity and access controls. A DID is a decentralized identifier; knowing an identifier does not grant access.
Persistence belongs to the backing implementation. Check disk writes, KV durability and remote availability separately. Keeping /work/report when changing stores requires an explicit mapping contract.
Exercise: replace the JSON report with a KV value. Check the returned structure and any version conditions on updates before treating the replacement as compatible.
Check your understanding
How do FS, JSON, KV and DID Space differ?
Common operations preserve differences in location, structure and persistence.
Continue along a learning path
- Tour the providersStep 3 of 5