Self-hosted service
olric-data/olric avatar
olric-data/olric

olric: the README names v0.7.0 as production, the Makefile declares a target it never defines

Distributed, in-memory key/value store and cache. It can be used as an embedded Go library and a language-independent service.

3,503 stars155 forksGoApache-2.0

At a glance

What is it?
A distributed in-memory key/value store and cache written in Go, usable as an embedded library or a standalone service, speaking the Redis serialization protocol. Its consistency claim is stated twice and is explicitly not a CP guarantee, its lock is documented as fit only for non-critical work, and its thirty-line Makefile declares a CI target with no recipe while giving the recipe to one it never declares.
Who is it for?
Olric fits a Go service that wants a cluster-wide cache or publish-subscribe layer and can talk the Redis protocol, either embedded in the application or run as its own service so other languages can reach it. Three things to settle before you build on it.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 20 days ago.
What is it written in?
Mainly Go, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • olric-data/olric3,503 ★ · +7
Star history
Repository2026-09-242026-11-23
olric-data/olric3.5k3.5k

7 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The README says v0.7.0 is production while v0.7.4 is published

One line near the top of the README says the current production version is v0.7.0, and links it to a branch named for that release rather than to a tag. The published releases go further: v0.7.2, then v0.7.3 in January 2026, then v0.7.4 in June 2026. So the version the documentation tells you to run in production is three patch releases behind the newest one available, and the link points at a maintenance branch instead of at anything you would install from. The same region of the README carries a migration note: the module path moved from a personal namespace to an organisation one, effective from v0.6.0, with the explicit reassurance that there is no other difference between the last version before the move and the first after it. Previous import paths still redirect, but the README asks you to change them anyway. The last commit on master is dated 2026-08-20.

A feature list that appears twice, and a section the index omits

The README has an At a glance section that its own table of contents does not list. That section opens with fifteen bullets, and a Features section later in the document repeats most of them, sometimes in the same words. The consistency line is the clearest case: providing best-effort consistency guarantees without being a complete CP, and in the README's parenthesis PA/EC, solution, appears verbatim in both lists. So does the claim to be embeddable while also usable as a language-independent service, and so do the claims of high availability and horizontal scalability. The Features version adds detail the first does not have, including that values may be arbitrary types, that the store is memory-only, that the storage engine is described as garbage-collector friendly, that lookups are claimed to run in constant time, and that load is distributed with a consistent hash function. Read the second list and skip the first.

The lock is documented as non-critical, and modelled on Redis SETNX

Olric ships a distributed lock, and the README is careful about what it is for. The features list describes it as a lock implementation which can be used for non-critical purposes, and the at-a-glance list credits it as inspired by the SETNX command of Redis, linking the design-pattern section of that command's documentation. The command reference then gives the lock real surface area: a plain lock and unlock pair, plus two lease variants, one of them prefixed differently from the others, so four commands for holding and releasing a distributed lock. The architecture section has its own subsection on how the lock is implemented. Taking the two statements together, the guidance is that this primitive coordinates work you can afford to repeat, not work where a double execution is a correctness failure. That is a narrower claim than the presence of a lock command usually implies.

The Makefile declares a target with no recipe and gives one to an undeclared name

The build file is thirty lines and holds one genuine defect. It declares a set of phony targets, and among them two CI entries. The first is declared and then defined properly, running the test target. The second declares the name ci-quick and then, on the following line, defines a target called ci-full that depends on the quick tests. So the name that was announced has no recipe and would fail as a missing target, while the name that has the recipe was never announced. The two are almost certainly transposed. There is a second smaller thing in the same file: a race-enabled test target exists and is not referenced by the continuous integration target, so race detection is available but not wired into what CI runs. Everything else is tidy, with formatting, a merge-preparation target that depends on both format and test, and an install target that installs every command with size and symbol stripping.

Redis compatibility is built on Redis's own client library

The interoperability story is the project's central design choice and it is stated more than once. Olric speaks the standard Redis serialization protocol, calls itself compatible with existing Redis clients, and offers itself as a drop-in replacement for the Redis publish and subscribe messaging system, which is how a client library written for one works against the other. The manifest shows what that costs: the official Go client for Redis is a direct dependency. So the compatibility claim is not merely a wire-format assertion, it is a dependency on the same client the project expects you to use, which also means the client library's own behaviour is part of the contract. Two of the bullet points sell the same benefit twice, saying that clients are available in nearly all major programming languages and that the protocol is what makes it so.

A distroless image, two ports, and a configuration file baked in

The container build is short enough to read in full. It copies the source into a builder stage on an unpinned Go image tag, downloads modules, and builds the server binary with cgo enabled and the size and symbol stripping flags. The runtime stage is a distroless Debian base, which means no shell and no package manager in the shipped image, and it copies in the binary plus one configuration file, the YAML that ships at the repository root, placed at a fixed path inside the image. The entrypoint passes that path as the configuration flag, so the image starts with a configuration baked in at build time rather than one supplied at run time, which is why the README has separate sections on managing configuration in YAML for embedded mode and on network configuration and service discovery for client-server mode. Two ports are exposed, and the repository also ships a compose file named for the server alongside a Docker directory.

The package's files sit at the repository root, next to a file and a directory of the same name

The layout is unusual for a Go module of this size. There are no twenty-nine source files at the repository root, thirteen of which are tests sitting beside the files they cover, covering authentication, the client, the cluster and its client and iterator, the embedded client and its iterator, response handling, ping, a pipeline, pubsub and stats. Directories carry the rest: commands, configuration, docker, events, a governance package, a hasher package, internal code, a packages directory, and a stats directory. Two observations follow. The public surface of the library is the repository root itself, which is what the package documentation link points at. And there is both a stats file and a stats directory at the top level, which is legal in Go but means the name is doing duty as both a type's home and a package's, so anyone grepping for one has to look in two places.

The consistency model names its compromises instead of hiding them

The architecture section is the part of the README worth an afternoon, and its honesty is the strongest thing about the project. Conflict resolution is last-write-wins. The project situates itself against a named consistency theorem and has a subsection for it, then another for read-repair on distributed maps. Replica control is quorum-based with separate read and write quorums, replication is on by default with synchronous and asynchronous options, and there is a subsection on split-brain protection described as simple. The at-a-glance summary is that the guarantees are best-effort and that this is not a complete CP, or in the parenthetical the README supplies, PA/EC, solution. Two caveats follow from that sentence rather than from any weakness in the work: anything stored must tolerate a lost write, and the quorum configuration becomes a correctness parameter rather than a tuning knob.

Editorial conclusion

Olric fits a Go service that wants a cluster-wide cache or publish-subscribe layer and can talk the Redis protocol, either embedded in the application or run as its own service so other languages can reach it. Three things to settle before you build on it. The consistency model is best-effort by design, not by omission: conflict resolution is last-write-wins, the project says plainly it is not a complete CP solution, and the lock primitive is documented as usable for non-critical purposes only. So anything you store must tolerate being overwritten, and anything you coordinate must not depend on that lock. Second, pick a version deliberately: the README still names v0.7.0 as the production version while later patches are published, and the module path changed organisation at v0.6.0. Third, expect the feature list to repeat itself in the README and the architecture detail to live in sections you have to go and read.

Frequently asked questions

What is Olric?

A distributed, in-memory key/value store and cache written entirely in Go. It can be embedded directly into a Go application as a library or run as a standalone language-independent service, it speaks the standard Redis serialization protocol so existing Redis clients work against it, and it provides partitioning, re-balancing, replication and publish-subscribe messaging.

Which version of Olric should I use?

The README names v0.7.0 as the current production version and links it to a release branch, while the published releases include v0.7.2, v0.7.3 and v0.7.4. The module path also moved from a personal namespace to an organisation one at v0.6.0, with no other difference from the previous version, and old import paths still redirect.

What consistency does Olric provide?

Best-effort guarantees, and the README says explicitly that it is not a complete CP, in its words PA/EC, solution. Conflict resolution is last-write-wins, replication is enabled by default with synchronous and asynchronous options, replica control is quorum-based with read and write quorums, and there is a split-brain protection mechanism described as simple.

Can I use the Olric lock for critical work?

The README says not to. The features list describes it as a lock implementation which can be used for non-critical purposes, and credits it as inspired by the SETNX command of Redis. The command reference exposes lock, unlock and two lease variants, and the architecture section explains the implementation separately.

What ports and configuration does the Olric container image use?

It exposes 3320 and 3322. The image builds the server with cgo enabled on an unpinned Go builder tag, ships it on a distroless Debian base with no shell, and bakes the repository's YAML configuration file into the image, passing its fixed path to the server on start.

Official sources

  1. Issues
  2. License: Apache-2.0
  3. olric-data/olric on GitHub
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/olric-data-olric.svg)](https://hysenlabs.com/projects/olric-data-olric)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/olric-data-olric.svg)](https://hysenlabs.com/projects/olric-data-olric)

Was this useful?