News for hackers. Stuff that matters.
Re:Go with PHP by 0xblinq on Thursday May 11, 2023 @01:56AM (#35898209)
Don't you dare to me that my isomorphic Node trpc graphql with redux and sagas on top of next.js with SSG and SSR and parts in server components with my home grown validation and ORM framework and still no translations because they don't work together with everything else and deployed on serverless docker lambdas to a kubernetes cluster is over engineering a landing page with a contact form.

That's a state of the art WebApp. You old PHP developer!

Re:Go with PHP by bilekas on Thursday May 11, 2023 @03:12AM (#35898812)
This made me giggle because I've heard stuff like this in serious situations.
Re:Go with PHP by 0xblinq on Thursday May 11, 2023 @03:17AM (#35898845)
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.
Re:Go with PHP by 0xblinq on Thursday May 11, 2023 @07:28AM (#35900669)
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).

Re:Go with PHP by topicseed on Thursday May 11, 2023 @04:51AM (#35899540)
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.
Re:Go with PHP by rob on Thursday May 11, 2023 @08:27AM (#35901133)
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.
Re:Go with PHP by cutler on Thursday May 11, 2023 @03:34PM (#35907289)
10 seconds? Slight exaggeration, surely.
Re:Go with PHP by samuellevy on Thursday May 11, 2023 @03:42PM (#35907404)
0.10 seconds
Re:Go with PHP by jjeaff on Thursday May 11, 2023 @05:42PM (#35908773)
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.

Re:Go with PHP by JonKF on Thursday May 11, 2023 @07:28PM (#35909750)
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.
Re:Go with PHP by lzomedia on Friday May 12, 2023 @03:40PM (#35921262)
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!!