This made me giggle because I've heard stuff like this in serious situations.
Of course, it's based of my personal experience too. I'm not claiming I invented this at all.
Re:Go with PHP
by iknowstuff on Thursday May 11, 2023 @03:34AM
(#35898991)
You described the marketing website of my previous employer.
And the marketing website of many others. It’s not a joke. Pure real life.
Re:Go with PHP
by creamyhorror on Thursday May 11, 2023 @04:07AM
(#35899254)
You're not using Temporal workflows? So outdated!
Though to be fair, devs lose employability when they don't get to use (in their work) technologies that are gaining wide popularity. It's a balance to be struck by the CTO/architect (assuming the devs want or are able to demand that skills development in the first place).
Yeh, JS-land is wild. In a way, it's amazing that this ecosystem is so lively and fertile, but my gosh it's draining.
Don’t forget to deploy all that code to the edge. Your $5 VPS in NY running both nginx and MySQL is going to be a huge bottle neck when somebody in Texas tries to view your simple website and it takes .10 seconds longer to load. You’re going to want that contact form code on at least 1,000 servers worldwide for maximum benefits and conversions.
Re:Go with PHP
by edvinbesic on Thursday May 11, 2023 @10:42AM
(#35902849)
Also, now that you are on the edge and your form submissions are web scale you likely need to model eventually consistency for the processing so you will need a highly available queue running somewhere.
10 seconds? Slight exaggeration, surely.
Re:Go with PHP
by samuellevy on Thursday May 11, 2023 @03:42PM
(#35907404)
0.10 seconds
Joking aside, as someone who runs their entire saas off a single bare metal server in Las Vegas, I have been toying with the idea of pushing some stuff to the edge. The reason being, sometimes those average load times are not giving you the real picture. If my average load time is 560ms per request because 90% of requests are 400ms and 10% are 2 full seconds, that might be a problem. Fixing those 10% requests and bringing them down in line with the rest would equate to an average speed up of only around 100ms.
However, I'm not yet sure a complicated edge deployment would actually fix the 10% problem.
I like the idea of a "Progressively Enhanced Monolith". Start by building the core of the application in something like Laravel that can do anything and be developed quickly, then stick it behind a proxy/CDN like Cloudflare. Then if you find endpoints or pages that are accessed frequently and would be better as their own microservice then use a small serverless worker to either respond directly from the edge or forward the request onto a microservice.
I'm jumping on the conversation , actually my portfolio website is on cloudflare pages with astrojs , it costs me nothing to host it , has a quick way to develop . I higly recomend it
Re:Go with PHP
by qbasic_forever on Thursday May 11, 2023 @10:19AM
(#35902480)
Wait you're not using islands architecture!? Hahahaha how quaint! Get a load of this site, it's not using islands!!
That's a state of the art WebApp. You old PHP developer!