Skip to content

How to break a lambda container with global state

Notifications You must be signed in to change notification settings

jgrigg/dead-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In case your programming teacher forgot to tell you 'global scope is evil'. A quick demo on how to break lambda containers by keeping things in global scope.

Handlers

Handler that does no evil.

Handler that uses global scope without unwanted side-effects.

Handler that uses global scope that can be catastrophic for the container instance.

Demo

Deploy with sls deploy then curl the resulting endpoints. Use query param fail=true to fail handler's promise chain.

About

How to break a lambda container with global state

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published