DEV Community

Discussion on: What's the WORST thing about serverless?

Collapse
morficus profile image
Maurice Williams

Vendor lock-in is much higher and testing locally becomes significantly more difficult.

Collapse
blouzada profile image
Bruno Louzada

Testing locally is almost impossible, then you need to create things in aws for local development, this is very bad!

Collapse
suryaprasad7500 profile image
Surya Malempati

If you're using serverless framework, check out serverless-offline npm package. There are other packages like this which can emulate DynamoDB too. It's not perfect, but that's the closest you can get to it at this point I think.

Thread Thread
ewanslater profile image
Ewan Slater

Or you can use a docker based, open source serverless framework such as Fn Project that you can run on any cloud (or your laptop), so you can test locally, and deploy wherever you like.

Collapse
rcoundon profile image
Ross Coundon

If we're talking lambdas, you can mitigate this by having your handler entry point be the only thing that's aware of the vendor environment. Have that function extract the data needed from the event and pass it into a separate function responsible for doing the actual work.