System Design Atlas

Newsroom publishing with approvals and usage rights

10 / 10Worked example

Design and evidence

Which tests ensure new text versions and the end of image use?

The final design reuses the complete runtime topology from step 6. Test markers connect key decisions to expected results and earlier steps to revisit. The following items form a test plan; measured evidence is still outstanding.

Starting point Block the origin and track cache invalidation.

Assumptions for the example case

Own fictitious example draft: A news article with text and an image; two-person approval; limited-time image right; versioned publication and correction. Figures and quality goals are illustrative test assumptions. Outside are legal advice, automated verification of source truth and comprehensive advertising sales.

Overall architecture with evidence

Runtime architecture · Editorial team, origin and delivery network

  1. 1 · Save version
  2. 2 · Bind release
  3. 3 · Deliver to the origin
  4. 4 · Blocking the right
Editorial interfaceAuthor + duty editors

Publishing platform

Editorial APIVersion + two-person review
Version, source and rights storageV-3 · R-121 · F-121
Object storeB-121 invariable
Publication workertransferred released status
Origin deliveryVersion + Lock
Rights-expiry workerBlocking + invalidation
Delivery networkCache + Invalidation
ReadersRequests
Editorial interface → Editorial APIVersion + approval
Editorial API → Version, source and rights storeVersions + rights
Editorial API → object storageReference image digest
Version, source and rights store → Publication workerApproved version
Publication worker → Origin deliveryV-3 + image
Origin delivery → Delivery networkApproved version
Delivery network → ReadersRequest
Version, source and rights store → Rights-expiry workerR-121 expires
Rights-expiry worker → Origin deliveryBlock
Rights-expiry worker → Delivery networkInvalidate
Rights-expiry worker → Editorial APIStatus
Version · Step 3/5Replay · Step 4Rightfulness · Step 7/9

Versions and rights carry the release; images remain immutable; rights expiration blocks the origin and tracks the invalidation.

Cache updates can be delayed. Track editorial decisions separately from delivery evidence. Pending publication remains visible to editors.

Test plan with review loops

ValidationExpected resultReturn to an earlier step
Concurrency in both ordersApproval of V-3 competes with a text change that creates a new version. If approval wins, it applies only to V-3. If the change wins, approval with the outdated expected version fails. No new version inherits F-121.Steps 3 and 5
Identical and changed retriesSend publication order for N-121 and V-3 twice: same publication. The same key with a new version is rejected. A duplicate rights-expiry message produces one withdrawal and a tracked invalidation job.Step 4
Exact value or time limitImage retrieval on 9 October 17:59:59.999 UTC is allowed; from 18:00:00.000 it is to be blocked. Approval by the same person as author is rejected regardless of time.Steps 2 and 5
Lost response and restartThe delivery network accepts V-3, but the response is missing. Publication remains pending and is reconciled by version and digest. When usage rights expire, the origin is blocked and cache invalidation is tracked; successful invalidation requires separate evidence.Steps 7 and 9

Concurrency in both orders

Expected result
Approval of V-3 competes with a text change that creates a new version. If approval wins, it applies only to V-3. If the change wins, approval with the outdated expected version fails. No new version inherits F-121.
Return to an earlier step
Steps 3 and 5

Identical and changed retries

Expected result
Send publication order for N-121 and V-3 twice: same publication. The same key with a new version is rejected. A duplicate rights-expiry message produces one withdrawal and a tracked invalidation job.
Return to an earlier step
Step 4

Exact value or time limit

Expected result
Image retrieval on 9 October 17:59:59.999 UTC is allowed; from 18:00:00.000 it is to be blocked. Approval by the same person as author is rejected regardless of time.
Return to an earlier step
Steps 2 and 5

Lost response and restart

Expected result
The delivery network accepts V-3, but the response is missing. Publication remains pending and is reconciled by version and digest. When usage rights expire, the origin is blocked and cache invalidation is tracked; successful invalidation requires separate evidence.
Return to an earlier step
Steps 7 and 9

First end-to-end validation

End-to-end path
Publish V-3, change it and test rights expiry. The new version needs approval; the old usage right expires unambiguously.
Open decision
Further media and channels will then be added. Legal advice, automated verification of source truth and comprehensive advertising sales require their own follow-up draft.

Test corrections

Test corrections

Publish V-3, change it and test rights expiry.

Publication and rights can diverge.

New version needs release; old right clearly ends.

Alternative considered
A normal publication test does not verify ongoing maintenance.
Trade-off
Controlled clock and cache states are necessary.
Reassess
Further media and channels will then be added.

Terms in this step

Test corrections
New version needs release; old right clearly ends.

Try it yourself

State the expected result and earlier step to revisit for a new text version and rights expiry.

A hint for your attempt

Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.

Compare with a possible solution
First part of the solution
A new version after F-121 remains unreviewed and is not published automatically; failures return to step 5.
Second part of the solution
Rights expiry blocks the origin and tracks invalidation until evidence arrives; failures return to step 7/9.

Apply to your project

Which corresponding assumption in your project would you check first? Consider this trigger: After that, further media and channels will be added.

Transfer the system boundary, evidence and open decisions to the editable Markdown design template.

Start your own design

Choose a small case from your project. The template collects the ten design tasks and leaves space for your sketches, decisions, and open assumptions. You can edit it in your text editor or note-taking app.

Download design template (.md)
Compare the ten tasks with the example case
  1. Purpose and boundary

    Which corresponding assumption in your project would you check first? Consider this trigger: Extensive research needs its own document structure.

    In the example: Preserve source references on the text revision. Editors can trace the rationale behind the publication.

  2. Requirements

    Which corresponding assumption in your project would you check first? Consider this trigger: Emergency process is explicitly regulated.

    In the example: Require distinct identities for the two-person review. F-121 requires a different authorised person.

  3. Scale estimates

    Which corresponding assumption in your project would you check first? Consider this trigger: Real peaks exceed the assumption.

    In the example: Test 833.33 requests/s as a separate media profile. Editorial activity rates do not size content delivery.

  4. Interfaces

    Which corresponding assumption in your project would you check first? Consider this trigger: Multichannel publication requires separate target references.

    In the example: Bind the publication command to a version and digest. V-3 remains the requested version.

  5. Data and states

    Which corresponding assumption in your project would you check first? Consider this trigger: Domain-defined change types need their own workflow.

    In the example: Limit approval to the reviewed revision. A new version inherits no review evidence.

  6. Overall architecture

    Which corresponding assumption in your project would you check first? Consider this trigger: Service contract delivers stronger publication commitment.

    In the example: Track editorial decisions and delivery evidence separately. Pending publication remains visible to the newsroom.

  7. Critical flow

    Which corresponding assumption in your project would you check first? Consider this trigger: delivery service changes its status interface.

    In the example: Check the version and digest at the destination. A retry does not produce a different version.

  8. Bottlenecks and trade-offs

    Which corresponding assumption in your project would you check first? Consider this trigger: correction latency exceeds the agreement.

    In the example: Measure versions separately at the origin and edge. Check invalidation specifically.

  9. Operations and security

    Which corresponding assumption in your project would you check first? Consider this trigger: Immediate revocation requires stricter retrieval protection.

    In the example: Block the origin and track cache invalidation. A blocking record alone does not prove that the edge has been cleared.

  10. Final design

    Which corresponding assumption in your project would you check first? Consider this trigger: After that, further media and channels will be added.

    In the example: Publish V-3, change it and test rights expiry. The new version needs approval; the old usage right expires unambiguously.