Giter VIP home page Giter VIP logo

Comments (2)

mrniko avatar mrniko commented on May 8, 2024

Is a RedisConnection class is intended to be used this way (multiple threads doing get/set/del ops) ?

I think it thread-safe, but there is an "synchronized" methods in RedisAsyncConnection which used under the hood by each RedisConnection. Also you should take in account sync nature of redis protocol, we can't send command and get result asynchronously only command by command. So holding one connection for multiple operation is not efficient in case of throughput. Connection will be some kind of bottleneck. In this case getting a connection from pool and back will be efficient in case of throughput, because we can execute multiple commands (each have own connection) concurrently.

from redisson.

mathieucarbou avatar mathieucarbou commented on May 8, 2024

Thank you! I understand why you prefer to not expose the connection manager therefore.

from redisson.

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.