The atomic symlink swap | Deployer
If you have ever wondered why a Deployer release is "atomic", the answer is one syscall: rename(2). The whole zero-downtime story is built on the fact that, on a single filesystem, swapping a symlink with mv -T is indivisible from the kerne…