Looks great! Inability to have a proper local development environment is the top of my list for why we haven't started looking much at serverless yet. Any plans to support Google Cloud Functions?
Hi Product Hunt,
We are Jay and Frank and we are building SST.
We've been serverless community members and builders since 2016. We had originally created Serverless Stack (https://serverless-stack.com) as a guide for building serverless apps. Over the years we noticed that our readers had a really hard time testing and debugging their Lambda functions. And there aren't any good solutions out there.
For some background, there are two main approaches to local Lambda development.
1) Locally mock all the services that your Lambda function uses. So if your Lambda functions are invoked by an API endpoint, you'll run a local server mocking the API. However, if your Lambda functions are invoked asynchronously or need authentication, it becomes really hard to set this up.
2) You'll need to redeploy your changes to test them. You'll make a change to a Lambda function, deploy that specific function, trigger your workflow, and wait for CloudWatch logs to show your debug messages. This can take a couple of minutes and can be really painful.
So we created SST. The `sst start` command deploys your serverless app and deploys a small _debug_ stack (a WebSocket API and DynamoDB table) along with it. It'll then stream any Lambda invocations to your local client, run them locally, and send back the results.
This means that you can make changes to your Lambda functions and test them live! It supports all the Lambda function triggers, without having to mock anything. Debug logs are printed right away to your local console. And there are no third-party services involved.
You can read more about SST over on our docs (https://docs.serverless-stack.com) and check out some examples (https://serverless-stack.com/exa...).
Thank you for reading about our project. We'll appreciate it if you took it for a spin and gave us some feedback.
I love what the team has done here! The live-development workflow is a game changer for me! Moving away from Serverless Framework to SST currently!
Awesome support on Slack from the team as well! 👏
I’ve recently began using the tutorial written by your team to learn your stack, and I love how easy it is to get up and running. I have to start doing some backend coding at my job, and our backend lead used serverless-stack to set everything up and he has nothing but amazing things to say about it. So far it’s been a great experience and the learning curve isn’t bad at all. Great work! Look forward to using it on future projects as well!
Totally agree with point 2! One of the biggest downsides of serverless for us is the somewhat black box nature of the stack, requiring deployment and CloudWatch to debug - as we've found offline mocks do not properly replicate the live environment.. would love some help getting this set up
Kitemaker