vert-x3 / vertx-redis-client

Redis client for Vert.x
http://vertx.io
Apache License 2.0
128 stars 116 forks source link

Create a higher-level Redis client wrapper that handles connection recovery #303

Open felixputera opened 3 years ago

felixputera commented 3 years ago

Read me

Read this first before creating an issue:

Describe the feature

This is suggested by @pmlopes in https://groups.google.com/g/vertx/c/vZZOFtFGOlI.

To quote his suggestion:

Given that now we have a single interface for all the connection modes, single, sentinel, cluster and replication, perhaps a good contribution would be a wrapper helper that implements opinionated recovery semantics. For example, wrap the client, and register an exception handler that catches recoverable errors. In such events, queue all calls to "send" and "batch" until the underlying client is replaced with a new one.

Use cases

This will make the vertx redis client even easier to be used by end-users.

Contribution

Not decided yet.

felixputera commented 3 years ago

As an aside, I know that Node.js Redis clients (like https://github.com/NodeRedis/node-redis and https://github.com/luin/ioredis) have this feature implemented too.