Hacker Newsnew | past | comments | ask | show | jobs | submit | mnapoli's commentslogin

They are cached


PHP is great for serverless because its execution model is compatible with it.

Unlike Node, Python, Java, etc. that start a long-lived server, each request is handled by PHP in a separate process.

That's what makes it really to use with serverless (and lift-and-shift, like what Treezor did).


Does that really matter when JS can be isolated in V8?

Comparing Bref (https://bref.sh/docs#maturity-matrix) which inherits Lambda's 200ms+ cold starts vs Cloudflare's 5ms (https://blog.cloudflare.com/eliminating-cold-starts-with-clo...), for example, is a pretty big difference.

But I guess if performance isn't a critical use (or you just have so many invocations all the time in every data center that cold start isn't an issue), it's nice to be able to ~port~ copy and paste over your existing PHP code.


Their clients have very variable traffic patterns because they are in very different industries. They have traffic spikes at lunch, or at the end of every month for example:

> infrastructure must be able to scale and be resilient to accommodate various usage patterns. Whether it's a luncheon voucher transaction spike at lunchtime or a monthly batch of transactions by corporate clients


You can deploy using the CDK for example: https://bref.sh/docs/deploy/aws-cdk


Oh wow, that’s almost exactly what I need. Thank you! I don’t know if this is newer or if I just totally missed it the last time I looked.


Happy Depot user here, our builds are now 10 to 20 times faster: https://twitter.com/matthieunapoli/status/162009074440824422...


Last step: https://bref.sh


This is pretty incredible TBH


With 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.


> 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.


Oh this is quite clever, we always tend to forget to update the dependencies…


What? You use vendor-prefixed CSS and then you complain when it disappear?

Grow up… Or read the warnings in the documentation…


And, like always, there is a relevant XKCD: http://xkcd.com/1172/

Moreover, there is no reason to use vendor-prefixed css without the soon-to-become standard css property. Bad code is bad code, Mozilla is not responsible to fix it.


The Lord giveth and the Lord taketh away. Job 1:21


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: