> I was under the impression that PHP's stateless nature, with a whole new instance of everything coming into being for each request
A couple issues here.
1. Even if the PHP process exits after each request, memory leaks during the request are still an issue. If I'm looping through 1,000 elements of an array and leaking memory each time, I could end up with a peak memory usage of 100MB when 1MB would've sufficed. That forces me to scale vertically when I might not otherwise need to.
2. Most
mature applications have worker processes that may be longer-lived than
serving an HTTP request. If PHP leaks memory, it's less suited to those
tasks. Maybe you write those in Go instead, but then you have to ask
yourself why you didn't just write the whole application in Go.
https://news.ycombinator.com/item?id=24235440
상태없어서 요청할때마다 인스턴스 새로생성 -> 그래서 라라벨 느린듯
댓글 0