What is X-axis scaling? The scale cube explained simply

The scale cube gives three ways to grow a system. The X axis clones the whole app, the Y axis splits it by function, and the Z axis splits it by customer or data. Here is what each axis means and when to reach for it.

A cube drawn in perspective with three labelled arrows from one corner. The X arrow shows three identical copies of a small shop. The Y arrow shows one shop split into separate counters for billing, packing and returns. The Z arrow shows separate shops for customers A to H, I to P and Q to Z.
Fig. 1 — Three ways to grow a busy shop: open identical copies (X), split the work into counters (Y), or split the customers into groups (Z).

Picture a small but popular sweet shop with one counter. Business is booming and the queue goes round the block. How can the owner serve more people? There are really only three kinds of answer:

  • Open more identical shops, each selling everything.
  • Split the work: one counter for billing, one for packing, one for custom orders.
  • Split the customers: a shop for the north side of town, another for the south.

Software systems grow in the same three ways. A popular model called the scale cube names them the X, Y and Z axes. This guide explains each, starting with the X axis, the one you’ll use first.

What is the scale cube?

The scale cube (often called the AKF scale cube) was described by Martin Abbott and Michael Fisher of AKF Partners in their book The Art of Scalability (2009). It’s a simple picture: a cube with three axes, each a different way to scale. You can move along one axis, or combine them.

A three-column comparison. X axis, clone: a load balancer in front of three identical copies of the whole app, all reading the same database. Y axis, split by function: separate services for orders, payments and search, each with its own data. Z axis, split by data: a router sends customers A to H, I to P and Q to Z to three copies of the app, each with only its part of the data.
X copies everything. Y splits by job. Z splits by who or what the data is about.

X axis: clone the whole thing

X-axis scaling means running many identical copies of your application behind a load balancer. Every copy can handle any request. If one copy handles 500 requests per second, ten copies handle roughly 5,000.

This is what most people simply call horizontal scaling, or “scaling out”.

Why it’s usually the first move:

  • Simple. No code changes if the app is stateless: it keeps no user data in its own memory between requests. Sessions live in a shared store (like a key-value store) or in a token (like a JWT).
  • Fast to do. Add servers, register them with the load balancer, done. Cloud auto-scaling does it automatically.
  • Adds reliability. If one copy dies, the others keep serving. See failover.

Its limits:

  • Shared parts don’t scale with it. Every copy still talks to the same database. Clone the app ten times and the database gets ten times the connections. It often becomes the bottleneck.
  • Every copy holds everything. All the code, caches and memory of the whole app are repeated in each copy.
  • It doesn’t help big teams. One big codebase is still one big codebase.

Read replicas of a database are X-axis scaling for data: identical copies that share the read load. (Replication covers how they stay in sync.)

Y axis: split by function

Y-axis scaling means splitting the application by what it does: a service for orders, one for payments, one for search, one for user accounts. Each runs, scales and deploys on its own, often with its own database.

This is the idea behind microservices.

  • Good: each part can be scaled to its own needs (search may need 20 copies, account settings 2). Teams own separate pieces and ship independently. Code and caches are smaller per service.
  • Costly: more moving parts, calls over the network between services, harder debugging and data spread across services.

Z axis: split by data

Z-axis scaling means running copies of the same code, but each copy handles only part of the data, chosen by a key such as customer ID, region or tenant. Customers A–H go to one group of servers and database, I–P to another, Q–Z to a third.

This is sharding, applied to the whole stack or just the database.

  • Good: each part handles a fraction of the data and traffic, so it scales to enormous sizes. A problem in one shard affects only its customers. You can place shards in different regions, near their users.
  • Costly: choosing a good key is hard, queries across all customers become difficult, and moving data between shards (rebalancing) takes care. See rebalancing and hotspots.

The three axes side by side

X axis Y axis Z axis
Idea Clone everything Split by function Split by data
Sweet-shop version More identical shops Separate counters for each job A shop per neighbourhood
Also called Horizontal scaling, scaling out Microservices, functional decomposition Sharding, partitioning
Each copy has All code, all data Some code, its own data All code, some data
Effort Low High Medium to high
Usually solves More traffic Big codebase, uneven load Huge data, very large user base

Common misconceptions

“Horizontal scaling fixes everything.” X-axis cloning multiplies the app servers, but shared parts such as the database still carry the combined load.

“Microservices are the way to scale.” Y-axis splits help with team size and uneven load. For raw traffic, cloning (X) is simpler and often enough.

“Sharding is just a database thing.” Z-axis splits can include the app servers, caches and queues too, so each customer group gets its own full slice of the system.

Key takeaways

  • The scale cube has three ways to grow: X (clone), Y (split by function), Z (split by data).
  • X-axis scaling runs identical copies behind a load balancer. It’s simple and should usually come first.
  • X works best with stateless servers, and leaves shared databases as the next bottleneck.
  • Y axis = microservices. Z axis = sharding by customer, region or key.
  • Big systems combine all three.

Frequently asked questions

What is X-axis scaling in simple words?

X-axis scaling means running several identical copies of your application and spreading requests across them with a load balancer. It’s the most common way to handle more traffic.

What is the AKF scale cube?

It’s a model from the book The Art of Scalability by Martin Abbott and Michael Fisher. It describes three ways to scale: cloning (X axis), splitting by function (Y axis) and splitting by data (Z axis).

What is the difference between X, Y and Z-axis scaling?

X-axis copies the whole application. Y-axis splits it into separate services by function. Z-axis runs the same code on separate parts of the data, such as groups of customers.

Is X-axis scaling the same as horizontal scaling?

Yes, in practice. Both mean adding more identical machines instead of making one machine bigger.

Which axis should I scale first?

Usually the X axis, because it is the simplest: make your app servers stateless and add more copies behind a load balancer. Move to Y or Z when team size, uneven load or data size demand it.

Comments

LEAVE A COMMENT
No sign-up. Comments appear after a quick review.