Redis is not consensusBuilding Ledis forced me to read WAIT twice: once as a Redis command I wanted to implement, and again as something people casually treat like a mini-Raft. It is not. WAIT is a propagation probe on the7 min read·backendprep.hashnode.dev13h ago
How a Replica Catches Up After It DisconnectsIf a replica loses its connection to the master, that happens all the time. The link drops, you restart something, the Wi‑Fi blips. When it connects again, the master either sends only what it missed5 min read·backendprep.hashnode.dev2d ago
Don’t close TCP while holding the big lockI was tightening replication in Ledis, a small Redis-like server in Go. Slow replicas were blocking the master—not because the network was magic, but because we were doing the wrong kind of work insid5 min read·backendprep.hashnode.devNov 24
How Ledis persists transactions without deadlocking the AOFThis blog explains how Ledis persist transactions to the append-only file without deadlocking, and how it replays the log when the tail is incomplete.3 min read·backendprep.hashnode.devOct 11
Using Async SQLAlchemy Inside Sync Celery TasksUsing async SQLAlchemy inside sync Celery tasks is a common challenge for developers because of sync nature of Celery and async nature of SQLAlchemy. This post breaks down why it's tricky and how to do it right.6 min read·backendprep.hashnode.dev1Mar 22