The history of SQLite as embedded databases power mobile and edge computing
SQLite powers over 4 billion smartphones and manages one trillion active databases. Created by Richard Hipp to solve server downtime issues, this 600KB engine scales from mobile devices to enterprise workloads like Expensify's Bedrock system.
The scale of the embedded engine
SQLite powers more than 4 billion smartphones and manages more than one trillion databases in active use. Richard Hipp created the engine in 2000 to address server downtime on the USS Oscar Austin guided-missile destroyer. He wanted a database that functioned without a server because the existing Informix software failed whenever the server went down. The engine footprint is approximately 600KB, and this size makes it ideal for edge deployments. The engine uses a B-tree implementation from Donald Knuth. It provides 100% branch coverage at the machine code level. The developers run 248.5 million tests in a pre-release soak test. They use 100 million lines of test code for 160,000 lines of production code. They also perform fuzz testing with billions of malformed inputs and power loss simulation during write operations. The team performs I/O error simulation for disk failures and crash testing to ensure database corruption never occurs. This tiny team of three people, consisting of D. Richard Hipp, Dan Kennedy, and Joe Mistachkin, maintains the codebase without outside contributions. They do not accept venture capital. This approach ensures the codebase stays in the public domain. SQLite is used in Windows 10, macOS, and most major web browsers like Chrome and Firefox. It is also the default for programming languages like Python, PHP, and Ruby. When Motorola wanted to use SQLite in their phones, Hipp requested a one-time payment of $80,000. The engine uses 20% less disk space than individual files. Database files are bit-for-bit identical on 32-bit, 64-bit, big-endian, and little-endian platforms.
Pushing beyond the embedded label
I find the scaling of SQLite for enterprise workloads to be a massive win. Expensify runs its entire operation on Bedrock, a custom database built on top of SQLite. David Barrett, the CEO, began developing the original concept in 2007 to meet the requirements of the Visa network. He hired P2P engineers he had worked with at Red Swoosh and Akamai to build the initial system. In 2012, Richard Hipp told Barrett that using SQLite for a 40GB database pushed the engine far beyond its intended use and suggested an enterprise-level RDBMS instead. Barrett ignored this advice. He follows the idea that progress depends on the unreasonable man who tries to adapt the world to himself. While many developers avoid SQLite for large-scale enterprise tasks, the engine provides 35% faster performance for 10KB files than individual files do when they use standard filesystem calls like fread or fwrite. Bedrock is written for modern hardware with large SSD-backed RAID drives and generous RAM file caches. It avoids the many hacky tricks that other databases use to eke out performance on obsolete hardware. Bedrock uses a Paxos-style algorithm and a distributed general ledger to ensure data integrity. The database is distributed over three data centers and remains redundant in each. This configuration ensures high availability and high performance for multi-datacenter deployments without any single point of failure. The SQLite team even added specific improvements to their branch to support Bedrock. These additions cost an extra 1% of CPU and memory. The entire database, including tables, indices, triggers, and views, lives in one cross-platform file. SQLite provides full ACID guarantees through file locking and journaling.
The mobile and edge frontier
WhatsApp uses local SQLite databases to store conversations for 2.5 billion users. On Android, the sandboxing system allows malicious apps to access these files if a user grants permission. Bas Bosschert, a CTO, demonstrated this by using a Python script to decrypt WhatsApp databases. Airbus uses SQLite for the flight software in the A350 XWB family of aircraft. This software meets DO-178B certification standards. The team plans to support the aircraft for its 40-year life through 2050. You already know that mobile apps drive modern commerce. In 2026, on-device AI provides 71% higher engagement rates for apps that run models locally. The global AI app user base has passed 1.1 billion people. Gartner predicts that 40% of enterprise applications will include integrated task-specific AI agents by the end of 2026. DuckDB is also growing as a tool for analytics workloads. This allows for complex queries to run directly on a device. Cross-platform frameworks like Flutter and React Native have reached production maturity. Flutter powers more than 1 million published apps. Developers choose between on-device AI, private cloud AI, and traditional cloud AI based on latency and privacy needs. Developers use mobile devices with high-efficiency NPUs to run models like Gemini Nano. This capability supports the $13.5 billion on-device AI market. Will developers continue to push embedded engines to handle even larger, more complex datasets?