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

Heartbeat thread working with lambda #63

Open
nitika-bansal opened this issue Sep 15, 2021 · 1 comment
Open

Heartbeat thread working with lambda #63

nitika-bansal opened this issue Sep 15, 2021 · 1 comment

Comments

@nitika-bansal
Copy link

Hi,

I was looking for implementing the DDB lock client inside a lambda. As per the lambda documentation here,

After the function and all extensions have completed, Lambda maintains the execution environment for some time in anticipation of another function invocation. In effect, Lambda freezes the execution environment. When the function is invoked again, Lambda thaws the environment for reuse.

So here, I wanted to understand, how does the heartbeat BG thread works in case of any lambda failure/timeout. Is it safe to assume that background thread will die as well, or it might be the case as it says in the documentation here, that if another lambda is executed in the same context, heartbeat thread might continue it's execution from there.

@jsommr
Copy link

jsommr commented Sep 28, 2024

+1. Would like to know if it's safe to use the java locking client in a lambda, since we don't use java elsewhere.

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

No branches or pull requests

2 participants