DEV Community

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

Collapse
 
copikmarcin profile image
Marcin Copik

While I agree with your assessment on the limited ability of local cloud stacks, I can't agree with the statement on quick and easy online testing. It seems that your statement holds true for clouds such as AWS, where the process of deploying a function and reading logs is relatively easy and quick.

I've had the opportunity to work with Azure Function as well, and my experience with their Python Linux apps was very different. It could take good 10-20 seconds to deploy a function, and the logs were not immediately available - it could take up to 5 minutes for them to show up in the monitoring stream. Even with local code linting, verification, and static typing, simple bugs can slip into Python code; it's even more frequent when we have no static definitions of data interfaces between functions. Debugging becomes a challenge when you can perform only 10-15 invocations per hour.

Even though most of the community is heavily focused and invested in the Amazon cloud, serverless is not only AWS. And just like offline and local stacks are very limited, so are the online testing possibilities in other clouds.