Skip to content

Can 'node-cache' block node event loop? #215

@sunhyun

Description

@sunhyun

In our project, we use node-cache as a cache layer.
We found an issue which looks like a API performance issue.
Our API responds status code '499' (client connection close, cause by our API response time is over client's limit), every 5minutes.
When we were looking for the reason, we found that we set node-cache TTL as 5minutes.
If node-cache block node's event loop when flush data, node server can't respond to API request during that time.
We are wondering if 'node-cache' block node event loop or not.

Thank you

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions