Comments (2)
performance will be better , codec will be done by user-thread insteadof netty-thread.
from lettuce-core.
It's a bit different. Performance depends on how the codec works internally.
If you work with one connection only (does not matter whether single- or multi-threaded), you won't notice a difference. The String encoding is non-blocking, the String decoding is blocking. But even this has very little effect, since Redis works mostly single-threaded. You'll get benefits if you connect to multiple Redis instances. Multiple connections won't share a codec and won't block each other.
The change is from share the String codec amongst the whole client to share the String codec amongst a logical connection. A logical connection is either a sync/async connection to Redis Standalone/Sentinel or a connection to a whole cluster. The cluster connection consists of multiple connections behind the scenes. So here the String codec is shared again among multiple physical Redis instances.
from lettuce-core.
Related Issues (20)
- Release Lettuce 7.0.0.RELEASE
- Thread blocked when using one global instance of ClientResources but repeatedly opening and closing connections HOT 1
- Prepare 6.4.0 branch
- Application got io.lettuce.core.RedisCommandTimeoutException irregularly. HOT 3
- Does Lettuce use CLUSTER NODES instead of CLUSTER SLOTS to discover topology? HOT 3
- Caused by: io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required. HOT 3
- BugReport: ClusterTopologyRefreshTask is not shutdown when RedisClusterClient is shutdown
- Deadlock in SharedLock HOT 3
- `SCAN` not working when using a read-only user HOT 4
- Periodic cluster topology refresh blocks commands execution. HOT 5
- Provide a way to force the driver to reconnect HOT 1
- io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1 HOT 4
- What are the differences and relationships between TimeoutOptions and defaultTimeout of AbstractRedisClient?
- Lettuce Drivers Fail on RedisHandshake when connecting to GCP Redis 7.2 HOT 1
- How to reduce memory footprint of RedisClient HOT 1
- Add support to get remaining TTL
- Flaky tests on the CI pipeline
- Improvements to the Redis connection/codec layer
- Distributed Lock with Lettuce HOT 1
- Cursor based operations not working properly with ReadFrom = ANY HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lettuce-core.