Corrosion: gossip-based service discovery using SQLite and CRDTs

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Fly.io's Corrosion lets engineers replace heavyweight service discovery stacks like Consul or etcd with a single Go binary backed by SQLite, making decentralised coordination far cheaper to run.

Read this as

Corrosion is a free, open-source tool from Fly.io that helps computers in a network automatically find and share information about each other's services. Unlike traditional systems that need a central 'boss' server, each machine keeps its own small database and periodically swaps notes with random neighbours, settling conflicts automatically. It is aimed at small clusters, home labs and unreliable networks, and it stores everything in SQLite so any service information can be queried with ordinary database commands.

Fly.io has open-sourced Corrosion, a service discovery tool its own infrastructure uses in production, offering a lighter alternative to etcd or Consul for teams that do not need full consensus. There is no control plane or sidecar to operate: each node runs one binary with a small HTTP API. Cost and operational burden drop for small clusters and edge deployments, but established incumbents remain safer bets for organisations needing strong guarantees.

Corrosion, written in Go by Fly.io (superfly/corrosion), uses UDP gossip to exchange CRDT state diffs between nodes, with hybrid logical clocks making last-writer-wins resolution meaningful across skewed clocks. Local state lives in SQLite, so service metadata is persistent and queryable with SQL joins. No leader or Raft consensus is involved; nodes converge even across partitions. No benchmark numbers are given; the HTTP API and setup commands are documented in the repo.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Corrosion SQLite Fly.io Superfly Go Consul etcd

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading