8 ms·
For the application development side of this, see http://www.12factor.net http://www.12factor.net. One of the tenets is that processes should be stateless, and
by beat 13y ago
For the application development side of this, see http://www.12factor.net http://www.12factor.net. One of the tenets is that processes should be stateless, and therefore filesystems are ephemeral. Don't expect a file to stick around from invocation to invocation. This is explicitly true on Heroku, where they guarantee that they will kill every process sooner or later - and with it, the VM that it runs in.
- groby_b 13y agoHow is the filesystem ephemeral? The local filesystem, yes. But a shared FS is nothing but yet another backing service.
- beat 13y agoA filesystem as backing service is a different problem (or more to the point, a different solution). But the filesystem used to store the application runtime is itself ephemeral. In Heroku, when the app shuts down, its VM goes away permanently, along with any local storage, and any instance of an app can be shut down at any time.