Reputation: 499
I'm wondering if EFS on AWS is fast enough to store PHP and execute PHP code? Or does the time it takes to access the files on the network when an HTTP request comes in, make this a poor solution?
Upvotes: 1
Views: 2144
Reputation: 74919
Yes, it's fast enough, but why bother? EBS is faster and the PHP code itself should not be changing while an individual instance is running in production. Usually you'll spin up an EC2 instance and deploy the code to the EBS storage.
Using EFS to store your application code would be an unnecessary ci/cd shortcut.
Upvotes: 3
Reputation: 2798
It all depends on your use case. Is it slower than EBS or ephemeral storage? Yes. Is it too slow for your use case? Hard to say.
When using EFS you are bound to the network IO availability on the shared infrastructure that your EC2 VM is running on.
Upvotes: 1