Distro News

Olric introduces distributed in-memory key-value store with Redis protocol support

Key Takeaway

Olric is a Go-based distributed hash table providing sharding, replication, and Redis-compatible access for cluster-wide data sharing.

Summary

Olric is an open-source, distributed in-memory key-value store and caching system designed to facilitate data sharing across machine clusters. By utilizing a distributed hash table, the software partitions data among cluster members, allowing multiple servers to access a unified pool of memory.

The system is built in Go and supports two distinct deployment modes: as an embedded component within an application or as a standalone service. For external client communication, it implements the Redis Serialization Protocol (RESP), ensuring compatibility across various programming languages. It is designed for transient data workloads that operate under an eventually consistent data model.

Technical architecture and features

  • Data Management: Implements automatic data partitioning, redistribution, and cluster membership management as nodes join or exit the network.
  • Consistency and Replication: Offers configurable synchronous and asynchronous replication, alongside read and write quorums to control replica operations.
  • Concurrency and Atomicity: Provides atomic operations such as compare-and-swap, increment, and decrement, as well as distributed locking primitives with configurable lease durations.
  • Protocol and Messaging: Supports the Redis Serialization Protocol for language-independent access and includes built-in publish-subscribe messaging capabilities.
  • Memory Management: Features time-to-live (TTL) expiration and least recently used (LRU) eviction policies to manage memory constraints.

Why it matters

As a Go-based alternative to systems like Redis or Hazelcast, Olric provides a scalable option for developers building cloud-native distributed systems. Its support for the Redis protocol allows for easier migration or integration into existing infrastructures that already rely on Redis-compatible clients.

Original reference: www.linuxlinks.com →