-
Notifications
You must be signed in to change notification settings - Fork 124
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
Support Proxy to Redis Server connection pool #247
Comments
Refer: Lightweight connection pooler for PostgreSQL |
explain in example 1、redis client send cmds [cmd1、cmd2、cmd3、cmd4、cmd5、cmd6] to proxy in pipeline |
1、non-blocking cmd will use the shared connection |
I've thought the first case,there ares 2 redis-clients (client A/client B send cmds to proxy (proxy A) not in pineline, client A send [cmd1、cmd2、cmd3], client B send [cmd4、cmd5、cmd6],can proxy A just send all thease commands [cmd1..cmd6] once in pineline to upstream redis-server A? |
In earily version, proxy's logic is what you want, but it means proxy should use a queue to buffer cmds, and run in producter-consumer thread model, it will cause frequent context switching in the CPU |
Module: camellia-redis-proxy
Content: As redis client send to redis server in pipeline mode, performance is much better. Can camellia-redis-proxy just use few connection to redis-server, send commands in batch?
Can blocking commands use this shared connection?
Will latency decrease badly?
The text was updated successfully, but these errors were encountered: