Quick POC: "Master-Follower Replication" using RocksDBHigh Level Design RocksDB is a high-performance embedded database for key-value data, designed for fast storage. In this post, I'll show you how to create a simple master-follower replication setup using RocksDB's backup and restore functionality. P...Mar 29, 2025 · 3 min readhyadav.hashnode.dev
Quick POC for "distributed lock" using ZooKeeperstep-by-step POC for distributed locking using ZooKeeper. Simulate two clients competing for a lock (e.g., accessing a shared resource like a database). Step 1: Start ZooKeeper brew install zookeeper zkServer start Step 2: Create a Lock Path Termi...Mar 27, 2025 · 3 min readhyadav.hashnode.dev
Quick POC for "service discovery" using ZooKeeperPOC for service discovery where 3 service instances register themselves, and 1 instance goes down. You’ll use ZooKeeper CLI and observe how ephemeral nodes and watches handle failures. Step 1: Install and Start ZooKeeper Start ZooKeeper Server: br...Mar 27, 2025 · 2 min readhyadav.hashnode.dev
Quick POC for "leader election" using ZooKeeperWhat Problem Does Leader Election Solve? In distributed systems, many nodes (servers) work together to perform tasks. However, some tasks require coordination by a single node to avoid conflicts or inconsistencies. For example: Database Writes : Onl...Mar 27, 2025 · 4 min readhyadav.hashnode.dev