Data Engineering 3 min read

Distributed Relational Databases or NewSQL: how database systems are evolving with new hardware and innovation

27 of the 123 words in my little language model appear in this post● used in this post● Arabic words, translated
Pencil sketch of a wasp whose parts are labelled as distributed database pieces: SQL antennae, 2PC hearts, linearizable spine, Raft wings, WAL stinger, HLC clock-eyes, sharded limbs

I remember how shocked I was the first time I learned that in 2008, Facebook was running thousands of servers around the world. That was years before I understood the principles of horizontal scaling and clusters—specifically how they scaled MySQL by sharding users. Yet even that was only a small part of Facebook’s operational complexity, where reads are served from an in-memory cache (fetching from the database on a cache miss), while writes and updates simply invalidate and delete entries from the cache.

The term NewSQL first appeared in 2011, and many consider it a marketing label for a broader category of distributed relational databases. Under this umbrella, the horizontal scaling and distribution capabilities of non-relational databases are combined with the strong ACID guarantees (atomicity, consistency, isolation, and durability) of traditional relational databases—properties like atomicity that make relational systems indispensable for many applications.

Looking closer at NewSQL databases, few defining characteristics unify all the technologies under this banner aside from partitioning. Rather than a rigid category with uniform traits, NewSQL represents a wide spectrum of products that preserve atomicity while remaining distributed and horizontally scalable. Many of these systems were built from scratch without relying on a prior architecture, though some are distributed extensions of PostgreSQL, such as YugabyteDB. Others act as middleware sitting between the application and traditional relational databases across multiple servers, and a subset even offers lock-free reads and writes.

Two prominent researchers in relational database architecture, Andrew Pavlo and Matthew Aslett, explored two central questions in their 2016 paper [1]: Is NewSQL genuinely faster than traditional systems, or is it just marketing? And if it is faster, is that due to novel computer science or simply modern hardware overcoming old bottlenecks? They highlight several key characteristics that NewSQL systems capitalized on. The first is the falling cost of RAM, which made main-memory storage viable and opened new possibilities for engineering database components—such as indexes and the storage engine itself.

Using memory as primary storage was not a new idea; as the researchers note, the concept dates back to the 1980s, though hardware constraints made it impractical at scale until recently. Today, affordable RAM allows systems to operate faster and leverage memory buffers far more broadly.

Advances in engineering techniques represent another major pillar of NewSQL. These systems scale horizontally by partitioning tables into shards distributed across shared-nothing nodes based on one or more partition keys. Range partitioning assigns each node a contiguous range of keys (for example, customer IDs 1 to 1,000,000 on Node A), preserving locality for range scans at the risk of creating hotspots during sequential inserts. In contrast, hash partitioning distributes rows evenly using a hashing algorithm, sacrificing scan locality in exchange for balanced load. But what is truly new here?

At the beginning of this series, I mentioned that I would explore both the topics Martin Kleppmann covered and those he left out. While he did not discuss NewSQL by name, he covered most of its underlying technical components. In practice, partitioning into ranges or shards works much the same way as in NoSQL document databases—the difference is that NewSQL stores relational data and preserves atomicity using consensus protocols or two-phase commit (2PC).

Some NewSQL systems also store data in hierarchical or interleaved tree structures that co-locate related records—such as customers alongside their contact details or purchase receipts. This mimics the performance benefits of denormalized data in NoSQL databases while maintaining relational integrity.

Distributed NewSQL databases face the same concurrency challenges as any distributed system: preventing dirty reads during writes or stale reads during updates. To solve this, they rely on established mechanisms like two-phase commit (2PC) or multi-version concurrency control (MVCC). Few genuinely novel solutions exist here, with the notable exception of Google Spanner’s TrueTime API, which combines atomic clocks and GPS receivers inside data centers to establish globally synchronized time bounds, enabling strict serializability across distributed nodes. Other systems rely heavily on in-memory architectures to resolve conflicts quickly.

For replication, most of these systems follow an active-passive model, where one primary node handles writes while replicas copy its data and take over via failover if the primary goes down. What feels newer in this space is wide-area network (WAN) replication across geographically distant data centers—not because NewSQL invented the concept, but because modern high-speed networks have made cross-datacenter consensus practical for latency-sensitive workloads.

Ultimately, bringing ACID guarantees into document databases—as seen in MongoDB or Amazon DynamoDB (within a single AWS region)—has arguably proven more straightforward than distributing relational databases, for many of the reasons outlined above. Looking ahead, the industry may be moving beyond rigid database classifications altogether, toward a broader architectural evolution shaped by AI and changing software development workflows.

[1] A. Pavlo & M. Aslett, “What’s Really New with NewSQL?”, SIGMOD Record 45(2), June 2016.

More in Data Engineering

All Data Engineering posts
  1. Data structures: a settled past, or revolutions to come?Data Engineering

  2. Data Stack Atlas: the map I built to study for the AWS Data Engineering examData Engineering

  3. Kleppmann’s Pessimism: A Deep Dive into the Evolution of Data Engineering Technologies  Data Engineering

Comments

Leave a comment

Your email address will not be published. Required fields are marked *