3 ms·
> nice if Lambda just reused the CGI interface Lambda is an event-driven system; synchronous, stateful request/reply for HTTP is shoehorned onto that. At heart
by inopinatus 2y ago
> nice if Lambda just reused the CGI interface
Lambda is an event-driven system; synchronous, stateful request/reply for HTTP is shoehorned onto that. At heart it's a scale-out queue processor, not a web server. This whole "lambda gives your code a URL" folks speak of, is actually an API Gateway thing. This is also why Lambda has at-least-once semantics rather than that at-most-once, which definitely surprises the casual web developer from time to time ("why did that happen twice??").
That said, I don't disagree with the sentiment; it would be quite nice if API Gateway had a simple option to map incoming request parameters to CGI-like attribute names in the event payload.