Why Fetch When You Can Sync? (The Future of App Architecture)
In this episode of The Merge, we sit down with James Arthur, the co-founder and CEO of ElectricSQL, to dive deep into the massive architectural shifts happening in local-first application development and AI data infrastructure. James shares his career journey starting from open-source furniture designs with Open Desk to pioneering synthetic data and privacy models at Hazy. He breaks down why traditional fetch APIs are holding software back and explains how the local-first movement, conflict-free replicated data types (CRDTs), and sync engine architectures are creating instant, reactive user experiences. We also explore the future of AI engineering, managing state for multi-agent swarms, and why models like Claude prefer Elixir when evaluating programming languages. What You'll Learn in This Episode: The Death of Fetch: Why moving away from imperative data fetching to a declarative sync architecture is the optimum pattern for modern applications. Bringing Agents Back Down to Earth: How to simplify overcomplicated agent architectures using standard databases and durable state primitives instead of over-engineered vector setups. Fixing Broken AI Token Streams: How Durable Streams solve the headache of dropped network connections during long-running LLM outputs. The AI Shift in Software Engineering: Why developers are transitioning into product managers orchestrating software factories rather than writing manual lines of code. Timestamps: 00:00 - Intro and Product-Market Fit in the AI Era 02:16 - James Arthur's Journey: From Open Desk to Synthetic Data at Hazy 05:46 - The Local-First Software Manifesto and Data Ownership 11:12 - Why Local-First Sync Architecture Wins Over GraphQL and Fetch 15:11 - The Deep Architecture: Understanding CRDTs and CAP Theorem 21:29 - Re-inventing the Sync Engine: Gatsby Insights and CDNs 24:10 - Managing State for Multi-Agent Systems and Durable Streams 30:49 - PG Lite: Compiling Postgres and PG Vector to Wasm 33:16 - How AI Agents are Changing the Craft of Software Engineering 39:44 - Rapid Fire: Why AI Coding Agents Choose Elixir Resources Mentioned: ElectricSQL: https://electric-sql.com Local First Conf: https://localfirstconf.com If you enjoyed this masterclass on distributed systems and AI infrastructure, make sure to Like, Subscribe, and hit the notification bell for more deep-dive engineering conversations! #localfirst #AI #Postgres #SoftwareEngineering #Elixir #WebDev #MultiAgentSystems #Database #CodingAgents