Hacker Newsnew | past | comments | ask | show | jobs | submit | anfrank's commentslogin

Wow, that is exactly what we are making. I posted elsewhere in this thread but SST (https://github.com/serverless-stack/serverless-stack) lets you work on your Lambda functions live without having to mock AWS services locally.

Here’s a short demo (https://youtu.be/hnTSTm5n11g)

I'd love for you to give it a try.


That looks cool I will check it out.


Awesome! We also have a super passionate community at https://launchpass.com/serverless-stack


Yeah I wouldn't go down the local stack path. IMHO, you should develop/test against real AWS services, and it falls on the tooling to make that experience fast/smooth.

I posted elsewhere in this thread but checkout SST (https://github.com/serverless-stack/serverless-stack), it lets’ you work on your Lambda functions live.

Think of it like your Lambda functions are Live Reloaded as you make changes to your code. You don't need to mock AWS services locally, and you don't have to wait for CloudFormation to deploy your changes.

Here’s a short demo (https://youtu.be/hnTSTm5n11g)


Live reloading sounds like it would relieve some pain with deployment. I'll try it out with SST.


Awesome! We also have a super passionate community at https://launchpass.com/serverless-stack


It's quite limiting on: 1. It only mocks API Gateway, and not accurately (ie. IAM permissions). You also need to use a bunch of other similar plugins to mock DynamoDB, SNS, SQS, etc. 2. You need to change your code (wrapping your aws-sdk to connect to localhost) to use these mocking plugins.

I posted elsewhere in this thread but checkout SST (https://github.com/serverless-stack/serverless-stack), it lets’ you work on your Lambda functions live without having to mock AWS services locally. Here’s a short demo (https://youtu.be/hnTSTm5n11g)


SST is an Open-Source framework worth checking out if you are looking for a lighting fast local dev environment for serverless. https://github.com/serverless-stack/serverless-stack

I often see ppl adopt one of two development patterns:

1. Locally mock all the services that your Lambda function uses. Like API Gateway, SNS, SQS, etc. This is hard to do. If you are using a tool that mocks a specific service (like API Gateway), you won't be able to test a Lambda that's invoked by a different service (like SNS). On the other hand a service like LocalStack, that tries to mock a whole suite of services, is slow and the mocked services can be out of date.

2. Or, you'll need to deploy your changes to test them. Each deployment can take at least a minute. And repeatedly deploying to test a change really slows down the feedback loop.

SST lets you develop your Lambda functions locally while connecting to others AWS services without needing to mock them locally. Behind the scene, the lambda requests are streamed to ur local, runs ur local function, response streamed back to Lambda. So you can iterate on ur function code without redeploying.

Think of your Lambda functions are Live Reloaded. You can see it in action here — https://youtu.be/hnTSTm5n11g

I’m the core maintainer of the project. And folks in our community are saying using SST feels like "working in the future" ;)

I'd love for you to give it a try. We are also a part of the YC W21.


I use this companies services (seed.run as well). Frank and Jay are doing something truly special in this space.

Also, this guide they put together is definitive: https://serverless-stack.com/#guide

Had I found that years ago, I would have saved SO MANY headaches. I've implemented local debugging (hell, and doesn't actually replicate AWS). I've followed the CloudWatch logs, just like you, painful.

The SST local debugging with lambda is the best way forward. Deploying micro services on seed.run is also the way forward.


Wow I really appreciate that! Thank you!


Thank you, that's awesome to hear!


Hey, thanks for the link. It does look quite good - there was another comment where someone had a home-brewed set up that did something fairly similar.

I'll check it out!


Awesome! We've got a super passionate community at https://launchpass.com/serverless-stack

You can also direct any questions/feedback to frank@anoma.ly :)


I second this. SST is like magic.


Thanks for the support! Really appreciate it!


Release note says pinning version with "^0.8.0", should be "~0.8.0" right?


^ is for minor version, ~ for patch, you can pin exact version without using anything, so "0.8.0"


Ah it seems ^ and ~ do not apply to versions pre 1.0.0


Frank here from Seed. Just wanted to add that when you have a monolithic Lambda, multiple routes would share a CloudWatch log group, metric, and share a common node in x-ray. On the flip side, the advantage of having separate Lambda functions handling each route lets you leverage other AWS services better.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: