Keeping a Stable Public Address Across Revisions

A durable resource can have one stable public address and several stored revisions, with application state selecting which revision is shown.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a title edit
  2. Update the selected revision coherently
  3. Publish a new revision through a stable article record
  4. Verify navigation, caches and timestamps together

Trace a title edit

A published guide can keep the same ID and path while its approved title changes. Draft edits can remain stored separately. Stable canonical addresses identify the public resource.

Update the selected revision coherently

The application should only select a valid revision of that resource and persist its publication state together. Foreign keys express part of that relationship.[1]

Publish a new revision through a stable article record

An article can use one public slug while several body revisions have their own IDs. Publishing revision two advances the article's public reference. Old links still retrieve the newest published revision according to the public view contract. See stable identifiers.

Article ID 42, permanent path /pages/sample/
Revision 1 visible, revision 2 drafted
Publish revision 2 → path remains, visible body changes

Verify navigation, caches and timestamps together

Public listings and sitemap entries can continue to name the article path, while its modification time tracks publication. Verify editor preview, anonymous response and links through the real endpoints.

References

  1. PostgreSQL Global Development Group, Concurrency Control ↩