Steve Wang
Steve Wang

Reputation: 41

What is the difference for the PHP app running on the Amazon Elastic Beanstalk or the general instances or servers?

My question is: What is the exactly difference for the PHP app running on the Amazon Elastic Beanstalk (called EB after.)or the general instances or servers?

I am new to Amazon Elastic Beanstalk, I used to try PagodaBox.com. Is the a PaaS platform EB exactly same as PagodaBox.com?

What's the difference of the runtime environment between the app running on the general servers or a PaaS auto-scale platform just like EB?

I may have figure out some. I do a test both on the EB and PagodaBox.com, the PagodaBox told me they are the destination, so you have to configure your app on the local, in fact, they do not support the write operation that out of the Share Dir which has defined in Boxfile.

So, is that correct? and same as EB that the PaaS platform will be a quite different than the general servers which hosted your website?

When you are installing a website like wordpress on the general single server, you can config and edit the file on the server-side, your every change will affected your source-code or resource files which's a part of your code. But if you are using a PaaS like pagoda, you can't even do a write operation out of the Shared Dir, that means you have to do the all at local then upload them as static code. all user data will be stored into mysql database as the same way in the general server, but all uploads should stored to a Shared Dir that defined to the Boxfile. but where should it be in EB? How we store the uploaded files if we are going to deploy a wordpress based site in EB? Is it going to be changing the code or we must find a own way to store a reside-data since we are coding our own app?

How many difference when you are designing the app running on the general server or a EB platform? the question might be: what's the difference when your app running a distributed environment?

Sorry, I don't speak English as well as Chinese. But I am looking for your answers, thanks!

Upvotes: 3

Views: 456

Answers (1)

Ken Liu
Ken Liu

Reputation: 22914

Elastic Beanstalk is a cloud PaaS service, and it has the same limitations as you describe. There is nothing in Elastic Beanstalk to prevent your application from writing to the disk on each instance, but this is not recommended for more than temporary file storage because instances can be deleted and created by the load balancer at any time.

In the case of Wordpress you would have to find a way to write upload files to S3 or some other more durable storage.

To answer your other question, Elastic Beanstalk does nothing with your code besides deploy it. It doesn't alter it in any way.

Upvotes: 1

Related Questions