This document discusses building a distributed and robust Phoenix API application backed by CockroachDB. It introduces CockroachDB and how it enables consistency, availability, and partition tolerance using consensus replication with Raft. The document also demonstrates CockroachDB passing the Jensen tests to prove its consistency under failures. Finally, it shows code for a sample Phoenix API application using CockroachDB with Postgrex and authentication.