3 ms·
I don't get it - the cheapest webhosts ($3/month) all let you run PHP - why would I need a cloud function when I have an always-on machine? And if it's for som
by yboris 6y ago
I don't get it - the cheapest webhosts ($3/month) all let you run PHP - why would I need a cloud function when I have an always-on machine?
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.
- paulryanrogers 6y agoWhen load varies you'll only pay while it's in use. Web-hosts without VMs or containers often promise a lot until you find their shadows limits. And those with VMs and containers can come out more expensive for some workloads. 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.
- chx 6y agoI am using a lambda to answer a webhook. The lambda function writes into SQS and in turns, SQS calls a queue worker automatically. 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.
- mnapoli 6y agoWith your webhost, you have to setup and maintain the server, including patching/updating it, setting up SSL, etc. 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.
- purerandomness 6y ago> With your webhost, you have to setup and maintain the server 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.