DEV Community

Discussion on: Do developers still use PHP?

Collapse
 
juststevemcd profile image
Steve McDougall

If you used a process manager then it would have to be running in the background to speed up the bootloading time, which would make it not serverless.

Don't get me wrong, I am a huge advocate for PHP, but I'm also a huge advocate for using the right tool for the job.

The main problem with using roadrunner like this is that you loose the point of serverless, however what it does give you is a fantastic way to add the next level of performance on a PHP server.

There are situations where serverless makes a lot of sense, but not all problems can be solved with serverless. I prefer to take the approach of progressive enhancement with serverless, and it's worked well for me in the past.

Thread Thread
 
nocnica profile image
Nočnica Mellifera

1) thank you for having such a respectful conversation in the comments!

2) i think on the face of it, yeah, Serverless isn't a perfect home for php since it's explicit purpose is to construct full web responses.

But there are situations where it will make sense for your team to use a Serverless platform for PHP. the users of Symfony Serverless *love" it and clearly paying for loading/startup isn't significant enough to sour them.

If your team has high Serverless expertise and a particular task runs efficiently on a Serverless platform, it'll make more sense to use it than making your team learn Go.

Thread Thread
 
juststevemcd profile image
Steve McDougall

I completely agree, the main driver for a lot of the decisions in a team is a split of cost/effectiveness against team skill/knowledge/expertise. You need to make sure most of all that what your building is the best you can do, even if it isn't the perfect way, it's better than using tech you don't know in a language you have a basic understanding of.

RE: respectful conversation: no need to thank me, it's what we should all be trying to do! Yes we all see a long of comments and conversations saying PHP is dead or isn't very good etc etc; but instead of jumping the gun and going on the defensive, it's easier and better to try to educate people on your experience with X language or framework. Also, respect costs nothing

Thread Thread
 
vitorspencer profile image
v1t0r

Thank you so much for your posts here Steve! You mentioned several topics which I have no knowledge about yet, and described them honestly, openly and respectfully (something which we need more and more nowadays).
Truly appreciate your comments.

Thread Thread
 
juststevemcd profile image
Steve McDougall

You're more than welcome, please feel free to reach out if you need advice on any of the topics I've mentioned ☺️