Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handler innvocations sharing memory #110

Open
thejuan opened this issue Sep 30, 2020 · 2 comments
Open

Handler innvocations sharing memory #110

thejuan opened this issue Sep 30, 2020 · 2 comments

Comments

@thejuan
Copy link
Contributor

thejuan commented Sep 30, 2020

It appears this executes handler code concurrently in the same memory space.
This is causing issues for us as some of our code is expecting the isolation that occurs in Lambdas.
One solution could be too use WorkerThreads like serverless offline does, not sure if they expose an API for calling handlers?
Or execute handlers serially.

@thejuan
Copy link
Contributor Author

thejuan commented Nov 10, 2020

Good example on SQS offline. Handles all runtimes as well https://github.com/CoorpAcademy/serverless-plugins/blob/master/packages/serverless-offline-sqs/src/index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants