Building a Multi-Master Distributed Redis in Erlang
summary
A Redis-compatible server called Edis is built in Erlang and presented as a multi-master experiment that actually runs: it uses LevelDB backend by default, exposes the Redis protocol, and broadcasts updates across nodes with gen_server casts. Consensus and leadership use paxos for leader election and vector clocks detect stale keys; conflicts currently resolve with a latest-wins rule. Implementation is slower than native Redis, many Redis features are incomplete, and the project is explicitly experimental rather than production-ready.
AI-written summary · about
chapters (12)
- 0:00Start
- 2:53Build a Redis Clone in Erlang
- 4:33Redis Commands
- 5:30The Redis Design Decisions
- 7:53Pattern Matching
- 9:38Structure of the App
- 10:22Erlang Code
- 11:15Client Manager
- 12:45Typical Redis Command
- 20:24Database Formats in Redis
- 24:40The Cap Theorem
- 28:14Demo
related talks
41mConsistent, Distributed Elixir
10mRedis, databaza në memorie me shumë përdorime
36mRunning Redis for 8 years
44mRunning atomic transactions across multiple data models?!?
27mBehind the Keys: Redis Oyster Cult
33mIntroduction to Redis
07mLightning Talk - Redex, An Elixir implementation of Redis
14m5 great ways to reimagine your data layer
