Recent submissions

Comment · 11 months ago
Thanks for the both great tools. just i didn't understand one thing ? the request flow, imaging we have 10 servers where we choose this request goes to server 1 and the other goes to 7 for example. and since its zero down time, how it says server 5 is updating so till it gets up no request should go there.
Comment · 1 year ago
Comment · 1 year ago
author here. as i mentioned in post i said we choose frankenphp since it's already supported by php foundation and in some cases we might use Go php extensions. i know writing extensions in any language add a bit complexitiy but i believe if the extensions selected wisely they will be somehow fire and forget. for instance creating pdf files would be faster in Go than php. you can create an pdf creator extension and that extension would probebly work for a long time without any adding much effort to maintenance.
Comment · 1 year ago
Perfect. we wrote our gateway in Go which handle authentication as well and then pass users data to other services (Go and php) and return their responses.
Comment · 1 year ago
author here. thanks for reading my post. i didn't suggest php for all type of projects. i don't choose that myself. what i just mentioned if the only reason to choose something else for responding some apis faster you still may continue in php for that.
Comment · 1 year ago
as i mentioned we just choosed frankenphp which is officially supported by php foundation. also only less than 5 percent of our code base is in Go. i don't see any problem to hire developers.
Comment · 1 year ago
i don't recommend rewrite in anycase (had done 2 successful rewrite before but still i don't choose that my self) and new php run times can may be really fast. you can checkout benchmarks. swoole for instance if used with all the functionalities like its specific caches may be so fast (in some cases as fast as Go)
Comment · 1 year ago
good idea, which language you choose for that ? also with frankenphp you can just write those required apis to be really fast as go extensions.
Comment · 1 year ago
if you know more about it, i would glad to hear which extension they did developed for business logic. i used a lot of Yahoo! in back days.
Comment · 1 year ago
thanks. but may you explain more. we just choosed frankenphp but i did't see if it makes debugging it much worse.
Comment · 1 year ago
thanks for suggestion. looks cool. but as you said far from production ready. we choosed frankenphp since we saw it got support by php foundation.
Comment · 1 year ago
4 years ago we have been in same situation and we choosed to continue in php with choosing version 8. so far it works for us all these years.
Comment · 1 year ago
Author here. thanks for reading my post. actually you still don't need rewrite. running php with workers (swoole, frankenphp, ...) may be as fast as node. and for typed array php has static analysers like phpstan. it support generics and typed arrays with typed comments.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton