News for hackers. Stuff that matters.
Re:Race-condition-free deployment with the "symlink replacem... by jacquesm on Monday October 22, 2012 @06:26AM (#4682495)
Two phases. Leave possibly referenced assets for a while until use of cached old files has become rare enough, then remove them.
Re:Race-condition-free deployment with the "symlink replacem... by mjs on Monday October 22, 2012 @08:21AM (#4682797)
Sure, but this approach is going to be much more complicated and less predictable than the "switch the docroot to a completely different directory" model. (e.g. you need to distinguish between asset and non-asset directories, and make a decision about how long to keep "old" assets around.) With some effort these problems can be solved, I'm just pointing out that even with a completely static site, and perfectly atomic docroot switching, you can still end up with clients in an inconsistent state.