Activation And Rollback
Each site has one live pointer: a small record that names the release visitors get. Publishing and rollback both replace that pointer and do nothing else.
What A Publish Does
- You send a ready release, the generation you expect the site to be at, and a UUID key.
- FOLD locks the site and records one pending activation. If the generation is out of date, or another activation is pending, you get HTTP 409 and nothing changes.
- A job reads the live pointer. If it still names the release you expected to replace, the job swaps it for the new one in a single conditional write. That write is the moment the new release becomes visible.
- The job marks the activation applied and advances the site's generation.
If the job stops between steps 3 and 4, it runs again, sees the pointer already names your release, and finishes step 4 without writing twice. That's also why repeating a publish with the same key is safe: you get the recorded state back.
What A Rollback Does
The same four steps, naming an earlier ready release. Its files were never removed, so there's nothing to rebuild or upload. The generation still goes up by one: a rollback is a new activation, not an undo.
One Pointer, Every Address
A site can be reached at several addresses, such as a path on the platform host and a domain of its own. They all read the same pointer, so a publish or rollback moves all of them together.
How Soon Visitors See It
The pointer is read on every request. A FOLD can be set to cache pointers for up to 60 seconds. It clears the cached pointer when a release is activated, but a request already in flight can still see the previous release for up to that long.
Back to FOLD Docs