-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
feature() add async_hooks module (async storage) [BLOCKED] #1407
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
Conversation
Pull Request Test Coverage Report for Build 1344
💛 - Coveralls |
Pull Request Test Coverage Report for Build 1346
💛 - Coveralls |
|
It's been 2 years, |
|
We adopted the code from this PR in https://github.com/narando/nest-xray/tree/master/lib/async-hooks Instead of using |
|
Why not try to reactivate it? Two years later the technology has been improved. |
it has even been back ported to Node.js 12 ( the latest EOL release :-) ) |
|
I was also looking for this functionality, so I spent some time researching and testing and the result is this package: https://github.com/Papooch/nestjs-cls |
|
Any updates? This issue is basically 3 years old, and it seems like the node AsyncLocalStorage API has matured quite a bit in that time. I think it would make a huge impact on NestJS- specifically as a mechanism to pass req/ctx while avoiding the performance penalty of request scoped providers. |
I wouldn't be so sure that using
According to the official Node.js docs, |
|
async_hooks are still experimental but if anyone wants to use this feature now, check out this library https://github.com/Papooch/nestjs-cls |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
AsyncHooksModulewhich usesasync_hooksmodule capabilities (share async state, for example, between HTTP requests). Blocked due to memory leaks -async_hooksis still in experimental stage.Does this PR introduce a breaking change?
Other information