Nodes fetch only the changed parts of a redeployed site

ChangedEdge NodeCDNv0.0.135

TL;DR: From v0.0.135, a gateway or operator node that still holds a site's previous version builds the new one from it, fetching only the parts that changed. Every rebuilt package is checked in full before it's served.

Until now, when you redeployed a site, every node serving it downloaded the whole new package, even the parts it already held from the previous version. From v0.0.135, a gateway or operator node that still holds the version a deploy replaced builds the new one from it, copying the parts that are unchanged and fetching only the rest. The CDN’s own gateways run this too.

What it means for you

  • Site publishers: a redeploy reaches nodes with less to download. This works alongside redeploys that upload only what changed.
  • Operators: your node downloads less when sites it holds are redeployed.

Every rebuilt package is checked

Before a rebuilt package enters the cache, it’s checked against the CDN’s record of the new version: every block, and the whole package. If the copy your node held is damaged, or anything else doesn’t match, the node fetches the whole package as before. A failed check costs a whole fetch, never wrong content.

Limits

  • Small redeploys are fetched whole. Packages under 1 MiB, or sharing under 10% with the previous version, are fetched in full.
  • Encrypted sites gain little. Level 1 and Level 2 builds are encrypted with a new key each time, so they share almost nothing and are effectively fetched whole.
  • Most of the saving comes once sites are built with the new block layout, which keeps an unchanged large file’s blocks the same between deploys.

What you need to do

  • Site owners: nothing.
  • Operators: update your node to v0.0.135.

← All changes · More Edge Node changes · Subscribe to Edge Node

View as Markdown