Skip to content

Best practices for number of connections #558

@dirkbonhomme

Description

@dirkbonhomme

I was wondering what the best strategy would be to connect to a Redis server during the execution of a script:

  • Create one instance and share that across all code that requires Redis (= 1 connection to Redis)
  • Create different instances for read, write and polling requests (= 3 connections to Redis)

Are there any performance gains from having multiple connections?

Apart from that, would it make any difference to have a separate connection for code that relies a lot on BRPOPLPUSH?

Thanks

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