News for hackers. Stuff that matters.
Re:Support for tagging of Lambda functions and for the Pytho... by idbehold on Tuesday April 18, 2017 @05:58PM (#14143361)
Uh, the API Gateway can't handle binary requests/responses very well and it certainly cannot handle multipart requests/responses. Additionally it has a 30 second timeout so I would say it's definitely not something you could just replace your hosted web server with completely yet.
Re:Support for tagging of Lambda functions and for the Pytho... by abalone on Tuesday April 18, 2017 @06:33PM (#14143633)
Looks like it does handle binary now, if not multipart yet.[1]

Granted the 30 second timeout is a constraint, but how bad a constraint is it? Ideally long-running requests like that should be rearchitected to return fast and deliver the results asynchronously, right? The bigger problem I see is the lack of websockets support, which makes delivering async results harder. Supposedly AWS IoT does it but that seems like an even more exotic usage than implementing a REST service in Lambda.

Basically I get that it's still early days and there are gaps here and there, but am wondering if it's actually an "antipattern" to use Lambda this way or just a little early.

[1] https://aws.amazon.com/about-aws/whats-new/2016/11/binary-da...

Re:Support for tagging of Lambda functions and for the Pytho... by idbehold on Tuesday April 18, 2017 @08:59PM (#14144574)
It handles binary, but not well. http://forum.serverless.com/t/returning-binary-data-jpg-from...

> Ideally long-running requests like that should be rearchitected to return fast and deliver the results asynchronously, right?

Ideally for whom? I can't think of an engineer who wouldn't rather do a simple request/response. It's certainly cheaper than spending the money to keep a connection open longer than 30 seconds, but far from ideal.

Re:Support for tagging of Lambda functions and for the Pytho... by revicon on Wednesday April 19, 2017 @12:29AM (#14145444)
>Ideally for whom?

Anyone running on heroku works with a hard coded 30 second timeout on all web requests. It works fine for everyone there.

Re:Support for tagging of Lambda functions and for the Pytho... by idbehold on Wednesday April 19, 2017 @07:16AM (#14146928)
> It works fine

You must have a different definition of ideal. I'm sure no one using Heroku would be upset if that limit was removed.

Re:Support for tagging of Lambda functions and for the Pytho... by jkarneges on Tuesday April 18, 2017 @06:49PM (#14143741)
We did a write-up last year about combining our WebSocket gateway with a FaaS backend: http://blog.fanout.io/2016/09/29/serverless-websocket-chat/

The FaaS used in the article is Microcule, but the same approach should work with Lambda now that API Gateway supports binary.