Live data from Hacker News

Chalice: Python Serverless Microframework for AWS

aws.amazon.com

21–30 of 101 posts

Re: Chalice: Python Serverless Microframework for AWS

#21
post #18
post #12

Earlier quoted context omitted.

"Let it be known that Lambda only supports python 2.7, not python 3, and that really frickin sucks. Get your shit together, Amazon." Node 4 support came, what, a month ago? It's pretty ridiculous.

There is no significant benefit to python 3 over python 2.

Except that it is the way forward and many people choose to write python3 compatible code.

Re: Chalice: Python Serverless Microframework for AWS

#22
post #18
post #12

Earlier quoted context omitted.

"Let it be known that Lambda only supports python 2.7, not python 3, and that really frickin sucks. Get your shit together, Amazon." Node 4 support came, what, a month ago? It's pretty ridiculous.

There is no significant benefit to python 3 over python 2.

You're wrong, and it's irrelevant anyway. Our app is in Python 3. Having to support Python 2 just because lambda doesn't support 3.x is a pain.

Re: Chalice: Python Serverless Microframework for AWS

#23
post #6

AWS Lambda is cool and all, but aren't people doing the math on this? Lambda seems like a really expensive way to deliver almost anything. Likewise, the AWS API Gateway is expensive, but at least provides some additional capabilities. Lambda seems like its profitable niche would be very small; limited computing environment, very high cost (relative to almost every other way to host an API), and having to learn a whol…

I think the appeal of Lambda is that most services get zero-to-low usage, and so something which is "pay only for usage" may be a net win over dedicated computing resources if you use it for the right parts. I've had a number of startup ideas that went nowhere, and it would've been handy to test & demo them without springing for the full $17/month for an EC2 t2.micro instance. Usually they have some key aspect that's…

Really $17 for a micro? Baby gce machine is $4.

Re: Chalice: Python Serverless Microframework for AWS

#24
post #13
post #6

AWS Lambda is cool and all, but aren't people doing the math on this? Lambda seems like a really expensive way to deliver almost anything. Likewise, the AWS API Gateway is expensive, but at least provides some additional capabilities. Lambda seems like its profitable niche would be very small; limited computing environment, very high cost (relative to almost every other way to host an API), and having to learn a whol…

AFAIK Lambda is the only way to react to events on S3 buckets. A lot of what I've seen it used for is as a mechanism for kicking off a workflow off of a new item in S3.

SNS can be consumed from anywhere not just Lambda.

Re: Chalice: Python Serverless Microframework for AWS

#25

Has anyone successfully and painlessly used Lambda+API Gateway in production as their main backend? It appears Lambda has many limitations, but I see rather mature frameworks such as Serverless (formerly JAWS) being promoted here, and now Amazon is also working on their standard framework. It would be great to just use CDNs and this; get all benefits of using a PaaS with IaaS-level costs only!

CloudSploit did - and just wrote an article [1] about it a few days ago. It isn't for everyone but it definitely save money in the right situations.

[1] https://medium.com/@CloudSploit/we-made-the-whole-company-se...

Re: Chalice: Python Serverless Microframework for AWS

#26
post #13
post #6

AWS Lambda is cool and all, but aren't people doing the math on this? Lambda seems like a really expensive way to deliver almost anything. Likewise, the AWS API Gateway is expensive, but at least provides some additional capabilities. Lambda seems like its profitable niche would be very small; limited computing environment, very high cost (relative to almost every other way to host an API), and having to learn a whol…

AFAIK Lambda is the only way to react to events on S3 buckets. A lot of what I've seen it used for is as a mechanism for kicking off a workflow off of a new item in S3.

you can push S3 events to SQS and then consume it anywhere (eg we had file converters running on Heroku, listening to S3 events through SQS)

Likewise, Lambda can execute events from SNS, Cloudwatch Events, Dynamo and a lot more, including the Amazon workflow system.

Re: Chalice: Python Serverless Microframework for AWS

#27
post #2

Ok, I have seen the phrase "serverless" a few times recently. Can someone explain to me what it is (as I am pretty sure it involves a server - it runs on AWS ffs) and why I should want to use it? And most importantly, is it web scale?

With Lambda you pay per 100ms / per-1-million-requests. So, yes, it's very proprietary at the moment, but for any service that sits idle most of the time it can be very cheap.

https://aws.amazon.com/lambda/pricing/

If you were hosting something like a little message board for your friends and family, or something you are demoing to to possible employers, etc, it'd be borderline free, but available all the time.

Re: Chalice: Python Serverless Microframework for AWS

#28

Has anyone successfully and painlessly used Lambda+API Gateway in production as their main backend? It appears Lambda has many limitations, but I see rather mature frameworks such as Serverless (formerly JAWS) being promoted here, and now Amazon is also working on their standard framework. It would be great to just use CDNs and this; get all benefits of using a PaaS with IaaS-level costs only!

we use it now as the main backend for Mindmup 2, migrated from Heroku.

I recently published the scripts evolved from our usage to simplify deployments as https://Github.com/claudiajs - the tool is mature, and allows teams to use API GW almost as easy as if it were a lightweight web server

Re: Chalice: Python Serverless Microframework for AWS

#29
post #9
post #2

Ok, I have seen the phrase "serverless" a few times recently. Can someone explain to me what it is (as I am pretty sure it involves a server - it runs on AWS ffs) and why I should want to use it? And most importantly, is it web scale?

http://martinfowler.com/articles/serverless.html

In this case, its the FaaS version, which is really just a slight twist on traditional PaaS.

Really, the "serverless" term does more to obscure than to illuminate.

Re: Chalice: Python Serverless Microframework for AWS

#30
post #6

AWS Lambda is cool and all, but aren't people doing the math on this? Lambda seems like a really expensive way to deliver almost anything. Likewise, the AWS API Gateway is expensive, but at least provides some additional capabilities. Lambda seems like its profitable niche would be very small; limited computing environment, very high cost (relative to almost every other way to host an API), and having to learn a whol…

Yes, you're missing the fact that you don't have to run servers all the time.

Unless your CPUs are constantly at 100% utilization, there is some slack in your infrastructure. Lambda you literally only pay for the compute time you actually use.

I migrated a smallish app to Lambda from EC2 and shaved my AWS bill from >$100/m to <$5/m.

Post reply on HN