Nick Lang
Nick Lang

Reputation: 499

Is AWS EFS fast enough for PHP code execution?

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

Answers (2)

Samuel Neff
Samuel Neff

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

BryceH
BryceH

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

Related Questions