Papooch / nestjs-cls

A continuation-local storage (async context) module compatible with NestJS's dependency injection.
https://papooch.github.io/nestjs-cls/
MIT License
390 stars 23 forks source link

Consider durable CLS-based providers #78

Open Papooch opened 12 months ago

Papooch commented 12 months ago

It might be possible to emulate the behavior of Durable Providers with CLS as well, where we could retrieve the same context instance in multiple subsequent requests.

A proper solution should also include a configurable cache timeout for the "durable" instances.

Papooch commented 10 months ago

Maybe it could be implemented as a plugin? #80