DEV Community

Discussion on: Why local development for serverless is an anti-pattern

Collapse
 
marcello_h profile image
Marcelloh

I don't see it as an anti-pattern, but with a bridge pattern in between, you will be able to test your stuff without any cloud solution behind it, which makes local development a snap and debugging as easy as normal.

Collapse
 
garethmcc profile image
Gareth McCumskey • Edited

Thanks for the feedback. I see it more than just about making developers lives easier. I see trying to execute code, even without the cloud services attached (I even wrote a blog post about setting this up two years ago), as inherently dangerous since it means developers are building for what "works on their machine" instead of directly against the 100% equivalent of production infrastructure. And with the existing tooling that's been around for 5 years now and is built into the framework by default its not even necessary

Collapse
 
marcello_h profile image
Marcelloh

I know we come from far, but when I have to debug a Lambda by watching logfiles, it feels like 1980 all over again.

Thread Thread
 
garethmcc profile image
Gareth McCumskey

I understand that sentiment. Personally I prefer to use whichever method is the most accurate. The ability to tail logs and see debug output is about as rewarding as using a debugger. Its just different. Having an inline debugger would be great and that may come but until then I'd prefer sacrificing what I am used to.

Thread Thread
 
rcoundon profile image
Ross Coundon

It's possible now using SST, see recent comments from Jay in this thread