-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use vertx-redis-client well? The version is 4.1.2 #304
Comments
@aloserman you're used the pooled mode, which means that for each command, a connection is acquired from the pool, the command executed, and the connection returned to the pool. Given your error, it seems that you're invoking the To solve this, you should reuse the connection: Redis client = Redis.createClient(vertx, options);
client.connect()
.onSuccess(conn -> {
api = RedisAPI.api(conn);
}); This way only a single connection will be used and all the queuing is controlled by: Remember that now is also up to your application to decide when to release the connection: conn.close(); |
Through your guidance, the code is like this, but there is an exception that cannot be serialized. How can I solve it?
exception as follow: |
When the data emit speed is very fast, the client will be blocked and no data will be sent out. How can we ensure that when the processing reaches the bottleneck, the data will not be discarded and can be sent normally. |
When I wrote the following code and found that a large amount of data entered, it could not work properly. The cause is as follows: Future{cause=Connection pool reached max wait queue size of 200}; All data is discarded。 How can we ensure that a piece of data is not lost and use it correctly. I did not find a good way to use it in the official
Future{cause=Connection pool reached max wait queue size of 2000}
The text was updated successfully, but these errors were encountered: