Blog

Mirror-First DX: Tools That Assume Bad Egress

Design CLIs and installers as if registries will flake.

By Pouya GhourchianiGhourchiani

engineering

Direct answer

Default to mirror selection, retries with jitter, and clear offline failure messages — not a tutorial that assumes Cloudflare PoPs are always near.

Pattern

  • measure mirrors before switching (APT)
  • keep Cargo usable when crates.io is unreliable
  • document the failure mode in the same repo as the tool