Skip to content
Latchkey

What Is a Symlink Swap Deploy?

A symlink swap deploy stages each release in its own directory and exposes the live one through a stable symlink such as current. Releasing means atomically repointing that symlink to the new directory, which flips the active version in a single operation. Rolling back is simply pointing the symlink at the previous directory.

Why it matters

Because the symlink update is atomic, no request ever sees a partially copied release, and the switch is effectively instant. Keeping several past release directories makes rollback a near-zero-cost pointer change. The trade-off is disk space for retained releases and care that processes pick up the new path on swap.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →