Skip to content

pool best practices #58

@colorao

Description

@colorao

Hi,
Im just new to Tedis and have some doubts.

1. timeour?
What this parameter means?
Is it a timeout ?
If so, what units? seconds? milliseconds?
What is it for?
could you provide some reasonable initial value or tiop on it ?

2. Pool
Does it creates a pool of TCP connections to be reused in a round robin manner?
But what is a best practice to use it?

Should I pick a tedis for every operation I want to do ?

  • getTedis()
  • do one insert
  • putTedis()

Or pooling is better designed for a more continuous use:

  • getTedis()
  • do one insert
  • do one reading
  • do another insert
  • do another reading
  • .....
  • putTedis()

I'm working on a plattform in which we expect even hundreds of thousands of concurrent users at time.
Any advice or tip will be highly appreciated.

Thanks in advanced !!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions