Re:Ask HN: Skeptical about my company going “full serverless...
by coredog64 on Tuesday November 08, 2022 @01:29PM
(#33522440)
My recommendation is to invest in testing now while it’s easy. You can mock the incoming events and use something like moto for service mocks. That catches dumb mistakes sooner.
Also, don’t put any logic in the handler itself unless it’s extremely trivial.
Re:Ask HN: Skeptical about my company going “full serverless...
by tra3 on Tuesday November 08, 2022 @01:35PM
(#33522520)
Sound advice, but that ship has sailed. This is an existing lambda that I'm refactoring so I need to be able to "go through the front door", as it were. Once I become more familiar with the code, I'll be able to test individual pieces are you're recommending.
The deployment story looks good though, with the `sam deploy`, but for now I can't get over the developer experience.