Replies: 3 comments
-
/cc @cescoffier (redis), @gsmet (redis), @machi1990 (redis) |
Beta Was this translation helpful? Give feedback.
0 replies
-
The connections are created on demand (lazily) and recycled. |
Beta Was this translation helpful? Give feedback.
0 replies
-
BTW, we you want to keep the same connection, use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Quarkus team, I got a question.
I'm setting up a quarkus application that uses the quarkus redis-client library, I would like to have a connection pool with ready connections to be used. Although, when starting the application I don't see ready connections being opened in the Redis server, the number of connections opened only changes when I request the endpoint that interacts with Redis. I'm using the
ReactiveRedisDataSource
andRedisDataSource
to interact with Redis.I was expecting that the client would open the number of connections I configured via the
quarkus.redis.max-pool-size
property, however, it seems like it's opening them lazily. Although that's not much of a problem, I checked that once I'm done sending commands to Redis for the request, the connection is closed. I connected to a Redis instance directly and saw that although I made a lot of requests to my endpoint, the Redis connection number always dropped afterward, which means the connections need to be reopened on every request. Isn't that a performance issue?For checking the number of active clients in the Redis server, I used the
redis-cli info
command.Thanks in advance. If this is not the right place to post these questions, let me know.
Beta Was this translation helpful? Give feedback.
All reactions