othiym23 / node-continuation-local-storage

implementation of https://github.com/joyent/node/issues/5243
BSD 2-Clause "Simplified" License
1.13k stars 207 forks source link

Stored value missing in large concurrent hit #138

Open JaiyashreeSM opened 5 years ago

JaiyashreeSM commented 5 years ago

Hi, We tried using continuation-local-storage in a loopback application. The value was set at the entry point (server.js) and inside the api-method, we just checked if we receive the same text being set while entry is received. While running j-meter with 500 requests in a span of one second, we got it fine. But, while running (500 requests / second * 100) it went unmatched.

sandipmohod commented 3 years ago

Observing the same issue in my application. Under heavy load , the same value is used for multiple requests.