7 ms·
Serverless WSGI with AWS Lambda and API Gateway
- flxn 11y agoThis was already posted 7 days ago. Link to the last thread: https://news.ycombinator.com/item?id=11058138 https://news.ycombinator.com/item?id=11058138
- Mizza 11y agoCome to the Django Users Meetup tonight in Berlin to learn more!
- avian 11y agoJust remember it's not serverless. It's just someone else's server.
- jclulow 11y agoIt's shared hosting all over again!
- jmathai 11y agoSimilar to the value that shared hosting provided in the 90s I think this is a natural evolution to provide similar value 2 decades later. The benefits here are that it is pay per use, scalable, and opens up more possibilities than traditional shared hosting.
- jread 11y agoI think that understates it a bit. AWS Lambda is backed by a fleet of servers managed around the clock by one of the largest and most experienced IT organizations in the world, and API Gateway is fronted and cached by Amazon CloudFront's global network of servers.
- derefr 11y agoIt's "serverless" in the sense of the server being commoditized and irrelevant to the design of the app. It might be better to say that the server is rendered ubiquitous or trivial than that it's removed. Lambda gives you a programming model where the server has no configuration or state, because all of what would normally be in the server is now in your handler specifications instead. So you don't need to think about the server, and any server running anywhere that can support loading Lambda handlers would be equivalent for your purposes. Imagine you're running your own Lambda-compatible server, and you have a scaling problem. The programming model means that the solution-space to that problem is restricted to adding more servers in a shared-nothing cluster configuration, not to reconfiguring the ones you have. Your Lambda server is thus a piece of black-box infrastructure, like a load-balancer.
- dsjoerg 11y agoWe need a new term, because "someone else's server" is a superset of what's happening here. How about "transient server" or "one-shot server"?
- brotherjerky 11y agoThis seems very cool. Is it possible to develop locally offline? Or do you always need a connection?
- Mizza 11y agoYou don't need to modify your Django projects in anyway to use it! Super easy to come, super easy to go.
- detaro 11y agoHow does this abstract local file (write) access away? Does it redirect it automatically to S3 somehow?
- kim_scheibel 11y agoIt doesn't. You need to put objects into S3 yourself. You currently have 512Mb temp space for staging files, if necessary. https://docs.aws.amazon.com/lambda/latest/dg/limits.html https://docs.aws.amazon.com/lambda/latest/dg/limits.html
- ihsw 11y agoI think another question is more important -- is it easy to convert an existing app to a Zappa app? Programmatically, that is.
- athrun 11y agoIt looks like any WSGI-compatible app would work. Note that your code itself would need to work within Lambda constraints (http://docs.aws.amazon.com/lambda/latest/dg/limits.html http://docs.aws.amazon.com/lambda/latest/dg/limits.html).
- rgbrgb 11y agoThe closer we get to systems like this being easy to build and commonplace, the closer we get to being able to do dynamic sites/apps on decentralized IPFS-like architectures [0]. [0]: https://ipfs.io/ https://ipfs.io/