3 ms·
That's actually less true of Lambda than of php-fpm. In Lambda, you can mutate the state of global variables between requests[1]; you have to take care not to d
by icebraining 8y ago
That's actually less true of Lambda than of php-fpm. In Lambda, you can mutate the state of global variables between requests[1]; you have to take care not to do that. In php-fpm, all is thrown away.
[1] http://blog.matthewdfuller.com/2015/12/aws-lambda-occasionally-reliable-caching.html http://blog.matthewdfuller.com/2015/12/aws-lambda-occasional...
- tyingq 8y agoThat's true for php-fpm, though many use something like apcu to cache state between requests. FCGI itself doesn't mandate that "thrown away globals" behavior. Golang under FGCI, for example, just spawns a goroutine for each new request.