Add redis cluster support #210
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This new backend enables using a Redis Cluster to reliably store objects in the cache.
With data sharding and built-in failover, Redis Cluster ensures that both service and data remain available even if some nodes go down. Each shard has replicas that can automatically take over in case of a primary node failure, providing redundancy and improved fault tolerance.
Please note that, due to asynchronous replication, some of the most recent data written to a primary node may be lost if that node fails before the changes are replicated to its replicas. Additionally, a brief interruption may occur while the cluster detects the failure and promotes a replica to primary.
Redis Cluster documentation (https://redis.io/docs/latest/operate/oss_and_stack/management/scaling/) provides recommendations for minimum node counts and offers several architecture examples.