1008
PHP is dead? (telegra.ph)
submitted 11 months ago by sag@lemm.ee to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] jaybone@lemmy.world -1 points 11 months ago

If it’s stateless and nothing is kept in memory, can you have a connection pool?

[-] aksdb@feddit.de 0 points 11 months ago

If you run it in old-school CGI mode, no, because each request would spawn a new process. But that's nowhere near state-of-the-art. So typically you would still have a long-running process somewhere that could manage a connection pool. No idea if it does, though. Can't imagine that it wouldn't, however, since PHP would be slaughtered in benchmarks if there was no way to keep connections (or pools) open across requests.

this post was submitted on 30 Oct 2023
1008 points (96.2% liked)

Programmer Humor

32282 readers
1234 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS