Hacker News new | ask | show | jobs
by remram 1586 days ago
So you are using it for shared files and user-generated files, not database? Instead of S3?
2 comments

Wordpress Plugins are stored both in the filesystem and in the database and need to match. Same for the Wordpress Core when an update occurs as WP updates the PHP files locally for the upgrade process. The AWS guidance for a multi-webserver Wordpress setup has included EFS for this reason for years now. You can store uploaded media in S3, but that is a performance optimization that doesn't solve the previous issues.
So you mean the plugins' code, I see, thanks!
Not OP but the obvious use case for Wordpress is the install directory itself. Deploy to one server and have all servers sharing the EFS get the update at the same time.
So PHP rereads the source files on every request? Interesting.
There's a cache. Even if you have to restart some process or purge some cache, this setup makes sense to me for applications that can update their own code (e.g. install/update plugins).