System Design Atlas

Digital lending with limited licences

09 / 10Worked example

Operations and security

Recovery starts by reconciling entitlements. Which conditions permit resumption?

An old backup may omit rights already granted.

Starting point Measure search staleness and pending command duration separately.

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.

Resume after reconciling with the service

Resume after reconciling entitlements

Platform operationsLoad pending A-52
Licensing serviceCurrent entitlement
Library teamReview the investigation case
Licensed-copy inventoryA-52 + X-52
Completion evidenceRevocation or confirmed non-issuance
Plattformbetrieb → LizenzdienstQuery A-52
Lizenzdienst → LizenzbestandStatus via API
Lizenzbestand → BibliotheksteamInvestigation case
Bibliotheksteam → AbschlussbelegX-52 reconciled

The library team and platform operations complete their steps with verifiable evidence.

Restore → inspect open references → reconcile entitlements and copies → enable allocation.

Access and recovery

Entitlement checks replace trust in download links
Every new online read checks the reader, loan, state and expiry. An old search result or link grants no entitlement.
Reconciliation
The library team investigates unknown licensing commands using stable references. After restoration, affected copies remain allocated until service state and local state agree.

Business outcome and completion

Evidence ownership
Returned requires evidence of revocation; Expired requires an expired entitlement enforced by online checks. Each releases the copy once. An unknown issuance or return outcome keeps it allocated.

Recovery starts by reconciling entitlements.

Recovery starts by reconciling entitlements.

Block affected copies until reconciliation.

An old backup may omit rights already granted.

The library team resolves the domain issue; operations restores the data. Matching service state for the loan and entitlement permits local completion.

Alternative considered
Immediate reallocation could grant overlapping rights.
Trade-off
Resumption requires evidence from the service.
Reassess
Real licensing agreements define the required evidence.

Try it yourself

Name the responsible role and completion evidence.

A hint for your attempt

An old backup may omit rights already granted.

Compare with a possible solution
Role
The library team resolves the domain issue; operations restores the data.
Evidence
Matching service state for the loan and entitlement permits local completion.

Apply to your project

What is the equivalent of reconciling entitlements before resuming in your project?

Step 10: the end-to-end test finishes with renewed availability. Which conditions establish completion?