3 ms·
Why is that? Couldn't you keep php running for the lambda lifetime? That way only when the lambda cold starts there would be no cache.
by fahrradflucht 9y ago
Why is that? Couldn't you keep php running for the lambda lifetime? That way only when the lambda cold starts there would be no cache.
- superasn 9y agoI'll try to research this. Another user suggested it to me before so maybe that's possible..
- mjb 9y agoI'm not sure how PHP integrates with common web servers today, because I've been pretty disconnected from that world for a decade, but at least you should be able to use the same mechanism to call the PHP runtime from your Node shim while keeping it alive. If PHP supports fastcgi, for example, there are modules in NPM that can do the Node side of it.
- CurleighBraces 9y agoIt would be cool if you could launch php-fpm but it doesn't look like lambda supports port binding/sockets. Seems like other people have had this idea in the past too! https://forums.aws.amazon.com/message.jspa?messageID=624889 https://forums.aws.amazon.com/message.jspa?messageID=624889 Are there any workarounds allowing something similar?
- CurleighBraces 9y agoI was wrong. From what I've read, port binding == no, sockets == yes. So should be able to use fpm to achieve this.
- superasn 9y agoThis is the best pointer I have recieved from anyone. A lot of people have told me to do it but nobody can tell me how to get started. This looks something worthwhile that I can research and implement. Thanks!