Amazon blogged about it at https://aws.amazon.com/blogs/compute/the-serverless-lamp-sta...
Amazon blogged about it at https://aws.amazon.com/blogs/compute/the-serverless-lamp-sta...
1. create a shared hosting account for almost nothing (or literally nothing: https://www.000webhost.com/free-php-hosting)
2. write index.php
3. upload index.php
4. ???
5. profit!
But now, I can have the greatest and latest serverless multi-region, multi-something stuff with only these simple steps: 1. create AWS Account
2. follow these "simple" (nothing in AWS is simple) 4 steps to create AWS keys: https://bref.sh/docs/installation/aws-keys.html
7. #npm install -g serverless
8. #serverless config credentials --provider aws --key <key> --secret <secret>
9. #composer require bref/bref
10. #vendor/bin/bref init
11. edit index.php
12. #serverless deploy
13. ???
14. no profit, because your stuff went viral and your AWS bill is killing you
So at the end we have 14 steps to create something that potentially costs a lot and had an easier solution since about 1997. Awesome.And if it's for something with high traffic, why would you want a cloud function anyway? I thought they are meant for "runs sporadically, so why have a machine that's always on?" setup.
Is this possible without AWS? Certainly. I was one of the two people who wrote the queue subsystem for Drupal more than a decade ago. And yet, AWS here does away with all the scalability concerns both up and down.
The landscape is changing too. So if your work is stateless or relatively low bandwidth, and has variable load then it's probably worth trying FAAS.
I used to do that for side projects, but I've had too many servers, and maintaining them was a pain.
For something with high traffic, Lambda provides the instant scalability. Imagine servers autoscaling, but instantly. And again, without having to setup or maintain that.
You're confusing a root server or a VPS with a webhost aka "shared hosting", where the hosting service takes care of Let's Encrypt certificates, and scheduled downtime for patching.