Title: Network Drive? (AWS EFS)
Last modified: June 10, 2020

---

# Network Drive? (AWS EFS)

 *  [Pratham](https://wordpress.org/support/users/pratham2003/)
 * (@pratham2003)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/network-drive-aws-efs/)
 * Hi,
 * Have you come across any possible issues where 4+ servers use a network drive(
   e.g AWS EFS)?
 * I’m sensing a possible issue when 2 or more different servers receive a new request
   for generating a combined css/js file and both try to write to a single file 
   at the same time.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/network-drive-aws-efs/#post-12964967)
 * have not come accross that yet, but theoretically this could indeed happen, although
   I guess the 2nd write should just silently fail and the 1st write will create
   the file?
 *  Thread Starter [Pratham](https://wordpress.org/support/users/pratham2003/)
 * (@pratham2003)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/network-drive-aws-efs/#post-12996460)
 * Can you briefly let me know how the file names are generated? I’m assuming it
   to be a hash of the content. So they would be same across two different servers
   as long as the css/js output is same, correct?
 * I found some more info here.
    [https://stackoverflow.com/questions/3832646/what-happens-in-nfs-if-2-or-more-servers-try-to-write-the-same-file-simultaneous](https://stackoverflow.com/questions/3832646/what-happens-in-nfs-if-2-or-more-servers-try-to-write-the-same-file-simultaneous)
 * > If you open the file in “write” mode (say you wanted to add content to the 
   > middle) then you actually have to lock the file to do this. The second PHP 
   > script will throw an error saying that it couldn’t open the file.
 * Does this exception need to be handled?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/network-drive-aws-efs/#post-12996613)
 * no, it even if one of the 2 writes fail, the file will exist as per the other
   write 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Network Drive? (AWS EFS)’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/network-drive-aws-efs/#post-12996613)
 * Status: not a support question