News for hackers. Stuff that matters.
Re:Build a 100% Serverless Website with AWS in 7 Easy Steps by ryanmccullagh on Thursday October 25, 2018 @11:24AM (#18301604)
Sounds cool in theory, but my small experience with a past company's serverless API is that it made impossible to debug. It was like deploying to a black box. There's no way to hit the API locally, etc.
Re:Build a 100% Serverless Website with AWS in 7 Easy Steps by elliottlan on Thursday October 25, 2018 @11:28AM (#18301640)
Have you seen this npm package?

https://www.npmjs.com/package/serverless-offline

I have no idea if this exists for other languages but its what lets me develop and test my functions locally before deploying them to stage/live.

Edit: they have some good examples - https://github.com/serverless/examples/tree/master/aws-node-...

Re:Build a 100% Serverless Website with AWS in 7 Easy Steps by timdev2 on Thursday October 25, 2018 @12:41PM (#18302265)
I've seen that situation as well. My approach recently has been to build things where running on Lambda is a feature, and not so much an architectural decision. The aws-serverless-express library basically wraps an express (or other similar framework) app to handle interfacing with the lambda, marshaling lambda "event" data into the framework request interface, for example.
Re:Build a 100% Serverless Website with AWS in 7 Easy Steps by sigstoat on Thursday October 25, 2018 @11:47AM (#18301806)
zappa (for example!) lets you produce a more or less normal flask app that you can run locally, or deploy to lambda / apigw with one command. another command let’s you stream the output of the code as it runs on lambda.

pretty sure similar tools exist for some of the other supported languages.

Re:Build a 100% Serverless Website with AWS in 7 Easy Steps by madeuptempacct on Thursday October 25, 2018 @11:44AM (#18301774)
This is my experience. We will use Azure functions occasionally if all we need is to get data from a third party (with auth, when they can't set up CORS properly), but that's about it.