3 ms·
Question: why doesn't Amazon just use the standard FCGI interface, then?
by jasonhansel 8y ago
Question: why doesn't Amazon just use the standard FCGI interface, then?
- icebraining 8y agoMaybe they are; as far as I know, the protocol they use to communicate with the worker isn't specified, all they say is "implement a function with this signature, then import our SDK, and it will call your function". This gives them the flexibility to switch protocols at will, at the cost of having to implement these SDKs. That said, building a FCGI "bridge" isn't hard, it's just that nobody cared enough to do it.
- karl_p 8y agoThey have specified the lambda runtime. https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.ht... Basically: your instance POSTS to an endpoint to get/reply to requests, one at a time. I can't wait until you can specify that a lambda instance can handle a certain # of requests in parallel. Ex: things just blocked on IO/DB. That would make better use of your RAM.
- jasonhansel 8y agoMy new serverless-to-CGI bridge will be called "hipstercgid"