Re:The Serverless Revolution Has Stalled
by hermanradtke on Monday October 12, 2020 @05:21PM
(#24759570)
GCP has https://cloud.google.com/functions/docs/functions-framework but I will not use it. I have found the best solution is to abstract away the serverless interface and create a test harness that can test the business logic. This adds some extra complexity in the code, but iterations are fast and do not rely on the overly complex and bug prone "platforms" like SAM and Functions Framework.
[ Parent
| on HN ]
Re:The Serverless Revolution Has Stalled
by uglygoblin on Monday October 12, 2020 @09:52PM
(#24761507)
This is precisely what I do when I write code destined to be an AWS Lambda Function. It really feels like the only sane way to do it. It also makes it easy to mock the incoming request/event for integration tests.