The overall architecture
The index grants no permissions. Which conditions enforce this rule?
Search data is derived.
Starting point Release only after confirmed non-issuance or access revocation.
Assumptions for the example case
A fictional library with one licensed copy and reading devices that verify entitlements online. Every new read checks the current entitlement; offline use is outside the scope. All quantities, thresholds and operational targets in this design are illustrative assumptions.
Index alongside licence state
Index alongside licence state
The index estimates availability; the API and licence datastore decide allocation; online reads check entitlements through the same API.
Responsibilities within the application
Lending modules
Search estimates availability; allocation, entitlements and returns maintain licence state.
Runtime components and authoritative data
- Runtime boundary
- Search interface → search index; lending interface → lending API → relational licence datastore. The licensing worker reads committed issuance/return commands → external licensing service; responses → API → the same datastore. Online reads check entitlements through the API. The indexing worker projects titles and availability without authority to allocate copies.
- Module responsibilities
- Title search: shows titles and non-binding availability. Licence allocation: atomically reserves an available copy. Entitlement management: connects loans with confirmed reading rights. Return: reconciles revocation and renewed availability.
The index does not grant permissions.
Online access checks the authoritative entitlement.
Search data is derived.
Projects titles and estimated availability. Sends committed commands; the API checks current rights.
- Alternative considered
- Treating an old link as permission bypasses returns.
- Trade-off
- Every access requires verification.
- Reassess
- Offline mode requires a separate design.
Try it yourself
Assign responsibilities to the indexing and licensing workers.
A hint for your attempt
Search data is derived.
Compare with a possible solution
- Indexing worker
- Projects titles and estimated availability.
- Licensing worker
- Sends committed commands; the API checks current rights.
Apply to your project
What is the equivalent of an index that grants no permissions in your project?