Giter VIP home page Giter VIP logo

Comments (2)

carlvine500 avatar carlvine500 commented on September 13, 2024

performance will be better , codec will be done by user-thread insteadof netty-thread.

from lettuce-core.

mp911de avatar mp911de commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.