Closed sonicoder86 closed 6 years ago
They are doing basically the same thing. If you are on node 8.x+ and using async functions, I'd recommend async-local-storage. This module was meant for backwards support to the AsyncListener feature in 0.x versions of node. It currently does not work with async/await though.
Can someone explain what is the difference between this library compared to https://github.com/vicanso/async-local-storage ? That library seems super simple.
I checked other solutions as we are having issues with destroying the namespace. Is destroying the namespace necessary on every request? Here is our middleware: