CockroachDB Videos
← Back to all videos

Off-label: CockroachDB as a blockchain

2026-08-24

Demos & Tutorials

Description

Learn how to configure CockroachDB to emulate a blockchain utilizing its rich SQL and PL/pgSQL support. In this demo, Rob Reid builds a publicly joinable cluster using a Kubernetes operator combined with the Nebula network overlay. Watch step-by-step as he implements blockchain primitives alongside what he terms "smart(ish) contracts" for escrow, royalty splits, and sealed bidding auctions. Finally, see how the cluster manages high throughput with a test simulating up to 1,000 requests per second while maintaining strict data consistency and validation. 00:00: Overview of blockchain emulation using CockroachDB 00:56: Building a publicly joinable cluster with Kubernetes and Nebula 04:18: Creating blockchain primitives 05:51: Inserting some test data 07:03: Smart(ish) Contract: Escrow accounts and fund verification 08:27: Smart(ish) Contract: Royalty splits using basis points 09:37: Smart(ish) Contract: Sealed bidding NFT auction 11:00: High-throughput performance workload testing and final conclusions 11:55 – Summary and Key Takeaways Learn more at cockroachlabs.com #distributedsql #cockroachDB #database