Skip to content

createClient in v5 is much slower than in v4 #2954

Open
@timonegk

Description

@timonegk

Description

I im using this redis client in an AWS Lambda to write data to an ElastiCache instance. When updating to v5, I noticed a sharp increase in lambda execution time (previous avg 70ms, new avg 850ms).

Image

The function only connects to the server, does a single RPUSH, and closes the connection.

After downgrading to v4.7.1, the execution time is back down to normal.

Node.js Version

NodeJS 20

Redis Server Version

7.1.0

Node Redis Version

5.0.0

Platform

AWS Lambda

Logs

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