Anirudh Jayakumar
Anirudh Jayakumar

Reputation: 1224

Is there automatic topology discovery support in Redisson Redis client?

The documentation suggests that we create a redisson instance with a specific Redis configuration (clustered, replicated, master-slave etc).

config.useClusterServers() // or
config.useReplicatedServers()

In situations where I only have the endpoint of one of the nodes in the cluster, will Redisson discover the deployment mode of the cluster (replicated, sharded etc) without the user having to instantiate with a specific configuration. If it does, then which of the available configuration would be ideal to start of with?

Upvotes: 0

Views: 1009

Answers (1)

Nikita Koksharov
Nikita Koksharov

Reputation: 10763

In situations where I only have the endpoint of one of the nodes in the cluster, will Redisson discover the deployment mode of the cluster (replicated, sharded etc) without the user having to instantiate with a specific configuration.

You should use Cluster configuration for cluster environment or cloud like (AWS, Azure). In this case it's required only one endpoint node to specify.

Replicated configuration used only for single master environment and/or multiple slaves on cloud (AWS, Azure) or any other deployment

Upvotes: 2

Related Questions