Skip to content

add configurable buffer sizes for Redis connections#3453

Merged
ndyakov merged 4 commits into
masterfrom
add-configurable-conn-buffer-sizes
Aug 4, 2025
Merged

add configurable buffer sizes for Redis connections#3453
ndyakov merged 4 commits into
masterfrom
add-configurable-conn-buffer-sizes

Conversation

@ofekshenawa

Copy link
Copy Markdown
Collaborator
  • Set default buffer sizes to 0.5MiB (up from 4KB) for better performance
  • Add ReadBufferSize and WriteBufferSize options to all client types

Fixes #3438

@ofekshenawa ofekshenawa marked this pull request as ready for review July 30, 2025 14:08
@ndyakov ndyakov self-requested a review July 30, 2025 14:36
Comment thread internal/pool/conn.go
Comment thread options.go
@ofekshenawa ofekshenawa force-pushed the add-configurable-conn-buffer-sizes branch from 3abf4d1 to 49d2a55 Compare August 3, 2025 14:20
@ndyakov ndyakov self-requested a review August 4, 2025 06:16

@ndyakov ndyakov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@ndyakov ndyakov added the feature label Aug 4, 2025
@ndyakov ndyakov merged commit 1eed165 into master Aug 4, 2025
20 checks passed
ofekshenawa added a commit that referenced this pull request Aug 10, 2025
* add configurable buffer sizes for Redis connections

* add MiB to wordlist

* Add description for buffer size parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make pool.Conn reader/writer buffer size configurable

2 participants