# distributed-locks

Published articles for distributed-locks.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Google's 20-Year-Old Chubby Design Still Has Useful Lessons for AI Infrastructure

DevFeed: [Google's 20-Year-Old Chubby Design Still Has Useful Lessons for AI Infrastructure](<https://devfeed.tech/articles/google-s-20-year-old-chubby-design-still-has-useful-lessons-for-ai-infrastructure-134368.md>)

Original publisher: [Read original article](<https://hackernoon.com/googles-20-year-old-chubby-design-still-has-useful-lessons-for-ai-infrastructure?source=rss>)

Author: Darsh Shah

Published: 2026-11-15T10:58:23Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [synchronization](<https://devfeed.tech/topics/synchronization.md>), [Service fabric](<https://devfeed.tech/topics/service-fabric.md>), [Production Engineering](<https://devfeed.tech/topics/production-engineering.md>), [AI Integration Strategies](<https://devfeed.tech/topics/ai-integration-strategies.md>), [Cloud Architecture](<https://devfeed.tech/topics/cloud-architecture.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2006](<https://devfeed.tech/tags/2006.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [abstraction](<https://devfeed.tech/tags/abstraction.md>), [accessible](<https://devfeed.tech/tags/accessible.md>), [affinity](<https://devfeed.tech/tags/affinity.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-infrastructure](<https://devfeed.tech/tags/ai-infrastructure.md>), [consensus-algorithms](<https://devfeed.tech/tags/consensus-algorithms.md>), [design](<https://devfeed.tech/tags/design.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-coordination](<https://devfeed.tech/tags/distributed-coordination.md>), [distributed-locks](<https://devfeed.tech/tags/distributed-locks.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [fencing-tokens](<https://devfeed.tech/tags/fencing-tokens.md>), [google](<https://devfeed.tech/tags/google.md>), [google-chubby-lock-service](<https://devfeed.tech/tags/google-chubby-lock-service.md>), [google-s](<https://devfeed.tech/tags/google-s.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [lease-based-coordination](<https://devfeed.tech/tags/lease-based-coordination.md>), [llm-infrastructure](<https://devfeed.tech/tags/llm-infrastructure.md>), [lock](<https://devfeed.tech/tags/lock.md>), [locking](<https://devfeed.tech/tags/locking.md>), [modern](<https://devfeed.tech/tags/modern.md>), [service](<https://devfeed.tech/tags/service.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [useful](<https://devfeed.tech/tags/useful.md>)

### AI overview

Chubby's lasting lesson is to make coordination a shared infrastructure service while leaving applications responsible for enforcing their own correctness. Google designed it for coarse-grained advisory locks and reliable storage of small amounts of metadata, prioritizing simplicity and reliability over throughput. Leases support ownership and failover, but cannot stop stale clients from writing; sequencers or fencing tokens and checks at the protected resource are needed to reject outdated operations. The article applies these principles to AI infrastructure, including worker routing, vector index rebuilds, metadata, and RAG pipelines. It contrasts Ray's execution primitives, Kubernetes' desired-state reconciliation, and etcd and ZooKeeper's coordination primitives, emphasizing that each leaves different responsibilities to applications. AI-specific hardware and pipeline failures require coordination to work alongside monitoring, orchestration, and fault isolation.

### Source excerpt

Explore Google's Chubby lock service and its lasting lessons for distributed coordination, advisory locking, leases, and modern AI infrastructure

## Exactly-Once Publishing on Cloudflare D1 Without Transactions

DevFeed: [Exactly-Once Publishing on Cloudflare D1 Without Transactions](<https://devfeed.tech/articles/exactly-once-publishing-on-cloudflare-d1-without-transactions-119321.md>)

Original publisher: [Read original article](<https://hackernoon.com/exactly-once-publishing-on-cloudflare-d1-without-transactions?source=rss>)

Author: horushe

Published: 2026-11-05T15:44:50Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [database-consistency](<https://devfeed.tech/topics/database-consistency.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [race-condition](<https://devfeed.tech/topics/race-condition.md>), [cache-invalidation](<https://devfeed.tech/topics/cache-invalidation.md>), [Cloudflare](<https://devfeed.tech/topics/cloudflare.md>), [Cloudflare Workers](<https://devfeed.tech/topics/cloudflare-workers.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>)

Tags: [atomic](<https://devfeed.tech/tags/atomic.md>), [batches](<https://devfeed.tech/tags/batches.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cache-invalidation](<https://devfeed.tech/tags/cache-invalidation.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cloudflare-d1](<https://devfeed.tech/tags/cloudflare-d1.md>), [cloudflare-workers](<https://devfeed.tech/tags/cloudflare-workers.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [condition](<https://devfeed.tech/tags/condition.md>), [content](<https://devfeed.tech/tags/content.md>), [d1](<https://devfeed.tech/tags/d1.md>), [distributed-locks](<https://devfeed.tech/tags/distributed-locks.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [exactly-once](<https://devfeed.tech/tags/exactly-once.md>), [exactly-once-processing](<https://devfeed.tech/tags/exactly-once-processing.md>), [fencing](<https://devfeed.tech/tags/fencing.md>), [fencing-tokens](<https://devfeed.tech/tags/fencing-tokens.md>), [learn-how-to](<https://devfeed.tech/tags/learn-how-to.md>), [publishing](<https://devfeed.tech/tags/publishing.md>), [race-conditions](<https://devfeed.tech/tags/race-conditions.md>), [revision](<https://devfeed.tech/tags/revision.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [sql](<https://devfeed.tech/tags/sql.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

The article's D1 publishing design combines expiring leases with fencing tokens and SQL guards inside every write. The final batch inserts the page only if lease and content checks still hold, then uses a random commit token to conditionally update the publication ledger and revision; a stale writer therefore makes no partial changes. Cache invalidation uses a global publication revision in cache keys instead of purges, with short lifetimes capped at scheduled visibility changes such as a post-midnight grace window. The tradeoff is one primary database read per cacheable request. A separate single-statement SQLite insert enforces unique sessions, dense slots and a 50,000-row puzzle limit. The article reports concurrent integration runs on Worker, D1 and R2 that published six pages once each and stored seven images once each.

### Source excerpt

Learn how to prevent duplicate writes in Cloudflare D1 using fencing tokens, guarded SQL batches, and revision-based cache invalidation.

## Distributed Locks Are More Dangerous Than They Look

DevFeed: [Distributed Locks Are More Dangerous Than They Look](<https://devfeed.tech/articles/distributed-locks-are-more-dangerous-than-they-look-106460.md>)

Original publisher: [Read original article](<https://hackernoon.com/distributed-locks-are-more-dangerous-than-they-look?source=rss>)

Author: Jaswanth Mopathi

Published: 2026-10-29T15:36:49Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [distributed algorithm](<https://devfeed.tech/topics/distributed-algorithm.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [consistency](<https://devfeed.tech/topics/consistency.md>), [etcd](<https://devfeed.tech/topics/etcd.md>)

Tags: [atomic](<https://devfeed.tech/tags/atomic.md>), [concurrency-control](<https://devfeed.tech/tags/concurrency-control.md>), [consul](<https://devfeed.tech/tags/consul.md>), [distributed-locks](<https://devfeed.tech/tags/distributed-locks.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [etcd](<https://devfeed.tech/tags/etcd.md>), [fencing-tokens](<https://devfeed.tech/tags/fencing-tokens.md>), [redis-redlock](<https://devfeed.tech/tags/redis-redlock.md>), [validation](<https://devfeed.tech/tags/validation.md>), [zookeeper](<https://devfeed.tech/tags/zookeeper.md>)

### AI overview

Distributed locks coordinate ownership but cannot stop an expired or paused holder from later changing shared state. Leases let work resume after a crash, trading permanent deadlock for possible overlapping authority; delayed requests and false failure detection can still leave stale workers active. The text distinguishes coordinator mechanisms: ZooKeeper uses ephemeral sequential znodes, etcd ties locks to leases and exposes revisions for transactional checks, Consul provides LockIndex/Session sequencers and treats TTL as a lower bound, and Redis uses random IDs for safe release while recommending fencing for consistency. Safety depends on the downstream resource atomically and durably rejecting operations with older monotonic fencing tokens. Where a resource cannot enforce fences, idempotency or another boundary that rejects duplicates must carry correctness. The excerpt also recommends fault injection that delays or pauses holders past reassignment and verifies the resource rejects superseded work.

### Source excerpt

Distributed locks don't always prevent stale workers from writing. Learn how leases, fencing tokens, and atomic validation protect shared state.