Skip to content

Booksellers & Trade Customers: Sign up for online bulk buying at trade.atlanticbooks.com for wholesale discounts

Booksellers: Create Account on our B2B Portal for wholesale discounts

Building Local-First Software: Mastering CRDTs, Yjs, and IndexedDB for Real-Time Sync.

by Richard M. Ponds
Sold out
Current price ₹2,438.00
Original price ₹2,765.00
Original price ₹2,765.00
Original price ₹2,765.00
(-12%)
₹2,438.00
Current price ₹2,438.00

Imported Edition - Ships in 18-21 Days

Free Shipping in India on orders above Rs. 500

Request Bulk Quantity Quote
+91
Book cover type: Paperback
  • ISBN13: 9798246603857
  • Binding: Paperback
  • Subject: N/A
  • Publisher: Independently Published
  • Publisher Imprint: Independently Published
  • Publication Date:
  • Pages: 202
  • Original Price: GBP 21.94
  • Language: English
  • Edition: N/A
  • Item Weight: 332 grams
  • BISAC Subject(s): Internet / Web Programming

The default architecture of the web is broken.

For two decades, we have built software that treats the user's device as a dumb terminal. We rely on the "Request/Response" cycle, forcing every interaction to wait for a server round-trip. The result? Apps that freeze on slow networks, spinners that spin endlessly, and data that vanishes when a WebSocket drops.

It is time to kill the loading spinner.

Building Local-First Software is the definitive engineering handbook for the next paradigm shift in application development. This book goes beyond high-level theory to provide a complete architectural blueprint for building software where the client is the source of truth, and the cloud is merely a synchronization peer.

Anchored in Yjs, the industry-standard CRDT engine, and IndexedDB, the browser's native binary store, this guide takes you from the mathematical foundations of consistency to the messy reality of shipping distributed systems at scale.

A Complete Roadmap from Architecture to Production:

  • The Foundation: You will dismantle the traditional REST API model and adopt the "Sync Triad" mastering the delicate balance between In-Memory Client State, Disk Persistence, and Network Peers. You will learn the "Seven Ideals" of software longevity and why Local-First is the only path to zero-latency UX.
  • The Mathematics: Stop guessing if your data will sync. You will deep-dive into the math of Strong Eventual Consistency, demystify Lamport Timestamps and Vector Clocks, and deconstruct the YATA Algorithm to understand how conflicts are resolved mathematically without a central coordinator.
  • The Implementation: This is a code-heavy guide. You will build robust persistence layers using IndexedDB primitives (bypassing wrapper hell), implement binary storage strategies, and engineer a custom Network Provider that seamlessly switches between WebSockets and WebRTC.
  • The Scale: What happens when a document grows to 100MB? You will learn optimization techniques like Subdocuments for lazy loading, Payload Tuning to minimize wire overhead, and how to scale your signaling layer using Redis/Postgres PubSub clusters.
  • The Production Reality: Shipping is harder than building. You will master Distributed Migrations across 1,000 devices with different schemas, implement Chaos Engineering to test packet loss and lag, and design Observability pipelines to monitor sync latency in the wild.
Inside, you will master:
  • Internal Mechanics: How Linked List Models and ItemStructs enable efficient merging in Yjs.
  • Data Modeling: Handling shared types, rich text editors, and ephemeral awareness (cursors/presence).
  • Conflict Resolution: Managing "Tombstones," garbage collection, and implementing Time Travel (Undo/Redo) in multi-user environments.
  • Reactivity: avoiding re-render cascades in React/Vue with optimized hooks.
  • Security: Authentication and permissioning patterns for decentralized routes.
Whether you are building a collaborative design tool, a resilient field-service app, or the next Notion, this book provides the hard-won patterns and low-level internals you need to build software that works.

Stop waiting for the server. Build Local-First.

Trusted for over 49 years

Family Owned Company

Secure Payment

All Major Credit Cards/Debit Cards/UPI & More Accepted

New & Authentic Products

India's Largest Distributor

Need Support?

Whatsapp Us