Comments (2)
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.
Thank you! I understand why you prefer to not expose the connection manager therefore.
from redisson.
Related Issues (20)
- ZPOPMIN\ZPOPMAX to count members error HOT 1
- UDP ports are kept open during DNS monitoring
- Redisson's RRateLimiter is not working properly, permits are not refreshing every second HOT 1
- why Redisson.java Declare the class as final? HOT 5
- Allow disabling the sharding feature
- how to use `lazyInitialization` in springboot2.7.14? HOT 3
- RBatch does not work with randomKeyAsync()
- Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.util.List HOT 3
- Unoptimized progressive allocations of primitive objects during boxing HOT 5
- Command execution timeout for command: (SENTINEL GET-MASTER-ADDR-BY-NAME)
- Watchdog doesn't renew lock intermittently which leads to premature release of lock HOT 2
- Watchdog doesn't renew RLock intermittently which leads to premature release of RLock
- Does Redisson 3.24.1 supports, AWS Elastic Redis 7.x version? OR which version of Redisson supports AWS Elastic Redis 7.x? HOT 4
- Hibernate 2L writes the active Entity to the cache, but it still queries from the database every time. HOT 5
- Does Redisson-Cluster-Mode support RPriorityBlockingQueue?
- redisson_delay Prefix disappears HOT 1
- NullPointerException Possibly Triggered in RedissonCountDownLatch.await Method HOT 2
- How to use filter,like QueryFilter? HOT 2
- "ERR MULTI calls can not be nested" when using rbatch in cluster mode HOT 2
- RTopic’s subscription function always fails randomly HOT 9
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 redisson.