I wrote the Redis Manifesto to condense my views on Redis and software development, because design questions often have no single answer and depend partly on taste, feeling, and ideas about how software should be written. I presented it as an approach that I and a substantial part of the Redis community like, not as the only possible way to do things. I intended to include it in the Redis distribution. It was originally published on oldblog.antirez.com on 1 March 2011.
I describe Redis as a DSL (Domain Specific Language) that manipulates abstract data types and is implemented as a TCP daemon.
I evaluate a data type not only by its supported operations but also by the space and time complexity of the data type and the operations performed upon it.
I describe Redis key-value pairs as primarily stored in the computer's memory; the main goal of the project remains the development of an in-memory database.
I claim that datasets composed of 10k or 40 millions keys will perform similarly.
I want Redis to avoid intermediate layers in API, so that the complexity is obvious and more complex operations can be performed as the sum of the basic operations.
I say we'll be happy to use beautiful self contained libraries when needed.
I want to recognize when a small feature is not worth 1000s of lines of code.
I describe the Redis API as two levels: 1) a subset of the API fits naturally into a distributed version of Redis and 2) a more complex API that supports multi-key operations.
Rather than imply that distributed multi-key operations work magically in every case, I want Redis to provide commands to quickly migrate keys from one instance to another to perform multi-key operations and expose the tradeoffs to the user.
I believe writing code is a lot of hard work, and the only way it can be worth is by enjoying it; when there is no longer joy in writing code, the best thing to do is stop.
I thanked Peter Cooper for reading the draft and helping to make it better.
The captured Redis Manifesto page reports 5752 days ago. 179814 views.
The manifesto treats Redis data types as abstract versions of fundamental data structures: for example, Redis Lists abstract linked lists. It favors an API grounded in those structures, with basic operations visible so more complex operations can be assembled from them. It also allows optional disk storage to be explored while keeping the project’s main focus on an in-memory database. For distributed use, it distinguishes a subset of the API that fits naturally into a distributed Redis from a more complex multi-key API; it rejects hiding the tradeoffs when opaque distribution cannot work in all cases.
I value code as expressive craft, not only as a means to a practical result. The manifesto uses Shakespeare, Enrico IV, the Divina Commedia, and One Thousand and One Nights to illustrate the value of coherent code and self-contained libraries. It argues that avoiding unnecessary complexity is often better than creating it and trying to fight it later. I also want Redis development to remain enjoyable.
I describe Redis commands as manipulating a key space where keys are binary-safe strings and values are different kinds of abstract data types.
I say that Redis Lists are an abstract representation of linked lists.
I say that memory is fast and allows Redis to have very predictable performance.
I also keep a record of the reader discussion captured with the manifesto. These are commenters’ reactions, not evidence of a project decision or an independent verification of their claims. The original post is not included in this capture, so the comments alone do not establish the full wording of its points.
Winfield Peterson said the manifesto reminded him why he preferred Redis over other key-value and more generic NoSQL stores for most things.
Dan encouraged me to keep things simple and joyful.
Hans disagreed with point 4, calling it childish and arguing that poetry was not code’s primary function.
Jon also questioned point 4: he thought “poetry” was vague, suggested it might mean a coding-style guideline contributors must follow for merged code, and warned that the phrasing could discourage contributions. This was his suggestion, not a recorded project decision.
Another commenter interpreted the idea as code having “clarity and consistency of voice” and said code is for humans.
Arun Srinivasan said he personally believed that code is poetry.
Peter Mescalchin praised Redis’s lack of complexity and said his production experience had made him confident it would perform dependably when called upon.
akram called the site “super fast” and qualified the observation with “if it's done in redis”; the comment does not establish how the site was implemented or how its speed was measured.
I note that smerickson called the post brilliant and said every library and product should have something like it.
I note that Bratish Goswami both liked the article overall and wrote “Love #4 :)”.
I note that JK’s comment uses a code-like snippet to express liking the Redis manifesto and studying Redis as a newbie.