<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Zookeeper on Sohil Ladhani Blog</title><link>https://sohilladhani.com/blog/tags/zookeeper/</link><description>Recent content in Zookeeper on Sohil Ladhani Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 01 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://sohilladhani.com/blog/tags/zookeeper/index.xml" rel="self" type="application/rss+xml"/><item><title>ZooKeeper Ephemeral Nodes</title><link>https://sohilladhani.com/blog/post/2026-04-01-zookeeper-ephemeral-nodes/</link><pubDate>Wed, 01 Apr 2026 00:00:00 +0000</pubDate><guid>https://sohilladhani.com/blog/post/2026-04-01-zookeeper-ephemeral-nodes/</guid><description>Redis locks expire after a TTL. If your process crashes, you wait up to 30 seconds for the lock to become available. ZooKeeper takes a different approach: lock it to the session, not a timer.
Ephemeral Nodes ZooKeeper has two kinds of nodes: persistent (survive until explicitly deleted) and ephemeral (automatically deleted when the client session expires). A session is kept alive by a heartbeat. If the client crashes, heartbeats stop, the session expires after a configurable timeout, and the ephemeral node vanishes.</description></item></channel></rss>