Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] 'Serverless' segment for Scaling page #137

Open
iadj opened this issue Aug 15, 2016 · 2 comments
Open

[Request] 'Serverless' segment for Scaling page #137

iadj opened this issue Aug 15, 2016 · 2 comments

Comments

@iadj
Copy link
Contributor

iadj commented Aug 15, 2016

Services which allow one to make their application serverless (i.e. AWS Lambda) are becoming increasingly popular. You only pay for code executed. No renting servers etc. This cuts costs extremely for growing applications and allows for easy endless scaling.

There's currently barely any material available for running a PHP application with a Serverless service. I hope someone can pick this up and write some instructions on how to make their Yii2 application serverless through AWS Lambda/Google Cloud Functions, or perhaps combined with the Serverless Framework: https://github.com/serverless/serverless

List of the most popular Serverless architectures:

  • Amazon AWS Lambda
  • Google Cloud Functions
  • Microsoft Azure Functions
  • IBM OpenWhisk
@petrabarus
Copy link
Contributor

AWS Lambda doesn't support PHP. The best you can do is create executable PHP code and execute it.
https://aws.amazon.com/blogs/compute/running-executables-in-aws-lambda/

@ptheofan
Copy link
Contributor

ptheofan commented Feb 7, 2020

Things have changed.
https://aws.amazon.com/blogs/apn/aws-lambda-custom-runtime-for-php-a-practical-example/

Making a package out of the example should be fairly straight forward. Just remember to "take care" of the logs if you need them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants