Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode Multiple Timeout Approaches #141

Merged
merged 8 commits into from
Apr 9, 2024
Merged

Conversation

ChristopherDavenport
Copy link
Collaborator

@ChristopherDavenport ChristopherDavenport commented Mar 29, 2024

Splits Timeouts for RedisRequest (the time to interact with redis), CommandTimeout (the time for a user to wait for a command to return). Where this is slightly awkward is the fact that on Queued/Cluster you want Command to be shorter than RedisRequest, since they are unrelated. Whereas on Pooled/Direct you want Command to be longer than the request since if you cancel the command it will cancel before that is seen and hence returned to the pool. Since that signal cant be intercepted to prevent its reuse.

Finally we massively tune down the default timeouts. If you are using blocking operations, then you should use different defaults, but in most cases folks use blocking operations less these days in my experience.

@ChristopherDavenport ChristopherDavenport marked this pull request as ready for review April 9, 2024 19:26
@ChristopherDavenport ChristopherDavenport merged commit 30df9ac into main Apr 9, 2024
26 checks passed
@ChristopherDavenport ChristopherDavenport deleted the multipleTimeouts branch April 9, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant