←back to thread

133 points avan1 | 1 comments | | HN request time: 0.213s | source
Show context
dakiol ◴[] No.45077990[source]
The one thing I don't like about PHP is that the whole application is bootstraped (and autoloading and the configuration is re-evaluated) in every single http request. Sure thing there's cache and all, but it just doesn't feel right (compared, to, for instance, an http server written in golang)
replies(5): >>45078039 #>>45078202 #>>45078278 #>>45079157 #>>45079955 #
1. duskwuff ◴[] No.45078202[source]
It doesn't have to be. Some PHP runtimes allow an application to run in a mode where a single script execution processes multiple HTTP requests:

https://frankenphp.dev/docs/worker/