Home Update RedisRaft brings sturdy information consistency to Redis…

RedisRaft brings sturdy information consistency to Redis…

307
RedisRaft brings strong data consistency to Redis clusters


Redis, the in-memory database and cache server, has introduced RedisRaft, a module that turns a group of Redis servers right into a fault-tolerant cluster with sturdy information consistency between nodes.

Until now Redis hasn’t had a local clustering possibility that additionally contains sturdy consistency, within the vein of tasks like Etcd. RedisRaft, because the title implies, makes use of the Raft consensus algorithm to coordinate consistency amongst Redis nodes. Further, RedisRaft is a local Redis plug-in, not a fork or an exterior venture.

[ Also on InfoWorld: Redis 6: A high-speed database, cache, and message dealer ]

RedisRaft replaces Redis’s personal cluster communications elements, so all community visitors between clusters will get routed via it transparently. Once RedisRaft is up and operating in a cluster, all reads and writes are made atomic.

Note that RedisRaft might require a slight rewrite of your utility’s Redis connection logic, relying on how a lot latency your app can tolerate. To carry out an insert, purposes should connect with the node within the cluster that’s the at present declared chief. This could be accomplished by rewriting the appliance’s Redis connection code to search out and connect with the chief, or by enabling a RedisRaft characteristic to robotically ahead requests to the chief. Approach #1 is quicker, however requires a change to your utility. Approach #2 introduces some community latency, however works together with your app as-is.

Redis’s module API, first provided in Redis 4, supplies an open, commonplace, and easy approach to lengthen the performance and use instances of Redis. Existing Redis modules vary from merely implementing new information varieties (e.g., fastened floating-point numbers) to including wealthy performance like full SQL capabilities or deep studying.

No public beta of RedisRaft is obtainable but. Redis Labs plans to supply a preview model within the subsequent few months, and to make the module typically out there with the discharge of Redis 7.0.

Copyright © 2020 IDG Communications, Inc.



Source hyperlink

LEAVE A REPLY

Please enter your comment!
Please enter your name here