Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How Fly.io Replicates SQLite Globally in Less Than 1 Second

InfoQ via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore how Fly.io built Corrosion, a distributed, eventually consistent state replication engine using Rust and SQLite, to replace HashiCorp's Consul for managing 800+ nodes with sub-second latency in this 50-minute InfoQ conference talk. Discover why traditional consensus-based systems like Consul with Raft couldn't scale for Fly.io's global infrastructure and learn how they leveraged CRDTs (Conflict-free Replicated Data Types) and the SWIM gossip protocol to synchronize machine state globally without central consensus bottlenecks. Examine the technical implementation of cr-sqlite through live demonstrations, understand how gossip protocols enable state propagation across clusters, and see how subscription-based SQL queries provide real-time updates. Gain insights into handling network partitions, implementing security with TLS within clusters, and learn from real-world incidents like the "Broadcast Storm" that shaped their architecture decisions. Understand the rationale behind choosing Rust for modern distributed systems and explore practical considerations for handling transactions and network partitions in eventually consistent systems. Master the balance between the CAP theorem constraints while optimizing networking layers for resilient distributed systems architecture.

Syllabus

— Intro: What is Fly.io?
— The Problem: Why Consul + Raft didn't scale
— Introducing Corrosion: Distributed SQLite
— CRDTs Deep Dive: Resolving conflicts without a leader
— [Demo] See cr-sqlite in action
— Gossip Protocols: How state "infects" the cluster
— Syncing lagging nodes & Periodic Anti-Entropy
— Subscription-based SQL queries for real-time updates
— Security & TLS within the cluster
— Lessons Learned: The "Broadcast Storm" incident
— Why Rust is the choice for modern systems
— Q&A: Handling transactions & network partitions

Taught by

InfoQ

Reviews

Start your review of How Fly.io Replicates SQLite Globally in Less Than 1 Second

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.