Click Below to Get the Code

Browse, clone, and build from real-world templates powered by Harper.
Blog
GitHub Logo

What is Diagonal Scaling and When is It your Best Option?

Diagonal scaling represents a paradigm shift in data storage and cloud computing, offering an intelligent and responsive approach to resource management. By seamlessly blending vertical and horizontal scaling techniques, it provides the agility required to thrive in today's dynamic business environment. Embracing diagonal scaling can lead to improved performance, cost savings, and greater control over your infrastructure, making it a valuable tool for businesses of all sizes.
Blog

What is Diagonal Scaling and When is It your Best Option?

Margo McCabe
Senior Director of Partnerships and Sales
at Harper
October 16, 2023
Margo McCabe
Senior Director of Partnerships and Sales
at Harper
October 16, 2023
Margo McCabe
Senior Director of Partnerships and Sales
at Harper
October 16, 2023
October 16, 2023
Diagonal scaling represents a paradigm shift in data storage and cloud computing, offering an intelligent and responsive approach to resource management. By seamlessly blending vertical and horizontal scaling techniques, it provides the agility required to thrive in today's dynamic business environment. Embracing diagonal scaling can lead to improved performance, cost savings, and greater control over your infrastructure, making it a valuable tool for businesses of all sizes.
Margo McCabe
Senior Director of Partnerships and Sales

Diagonal scaling as it relates to a database and/or cloud computing is precisely what it sounds like - combining the best of both vertical and horizontal scaling to better suit the needs of the organization. When implemented correctly, diagonal scaling enables you to handle more data and more users, ultimately enhancing efficiency and reducing bottlenecks. 

In the database world, scaling typically refers to the process of adding more resources (such as servers, storage, or processing power) to handle increased data and workload demands. Common approaches to scaling databases include vertical scaling (adding more resources to a single server) and horizontal scaling (distributing the database across multiple servers).

Diagonal or hybrid scaling can be a game-changer, offering a dynamic solution to the challenges related to fluctuating workloads. Unlike traditional vertical and horizontal scaling approaches, diagonal scaling provides the flexibility to adapt to changing demands seamlessly. In this article, we will delve into the concept of diagonal scaling and its many benefits.

Types of Scaling 

Vertical Scaling (Scaling Up)

Vertical scaling involves adding more resources (such as CPU, RAM, or storage) to a single server or database instance. This approach is often used for databases that can't be easily partitioned or distributed, and it's suitable for workloads with limited growth potential. It can be costly because you need to invest in more powerful hardware, and there's a limit to how much you can scale vertically.

Horizontal Scaling (Scaling Out)

Horizontal scaling involves distributing the database workload across multiple servers or nodes.

This approach is highly scalable and is commonly used for handling large volumes of data and high traffic. Sharding and replication (or clustering) are common techniques used in horizontal scaling, and these methods can be more cost-effective and resilient than vertical scaling.

Read Scaling and Write Scaling:

We should also briefly touch on read and write scaling. Read Scaling involves optimizing the database to handle read-heavy workloads. Techniques like read replicas (copying data for read access) and caching mechanisms can be used to offload read traffic from the primary database. Write Scaling focuses on handling write-heavy workloads efficiently. Techniques such as partitioning, indexing, and optimizing write queries can help improve write performance.

Overall, one might consider that diagonal or hybrid scaling combines elements of both vertical and horizontal scaling to optimize database performance and cost. For example, you might vertically scale a database server and then use horizontal scaling by adding read replicas to distribute read traffic.


The Need for Diagonal Scaling

Imagine a scenario where your workload experiences sudden spikes, such as a surge in orders or users during certain months. Initially, when CPU utilization is manageable, a load balancer can easily adjust the capacity without any hiccups. However, as heavier tasks like processing large videos or other massive files become more time-consuming, some processes may require additional compute power. This situation can lead to a bottleneck in your system.

Enter diagonal scaling—a savior in times of imbalance. You can tweak the compute size, such as upgrading your RAM and storage size. By doing so, some instances can handle heavier workloads, while others can continue using the existing configuration. This intelligent allocation of resources prevents instances from being throttled, ensuring smooth operations.


Benefits of Diagonal Scaling

Uniting Vertical and Horizontal Scaling

Diagonal scaling offers the versatility to add resources precisely where they are needed in response to specific business scenarios. When there is a sudden surge in traffic, diagonal scaling swiftly accommodates the increased demand. Conversely, when traffic subsides, the configuration returns to its normal state. This dynamic approach strikes a perfect balance between resource allocation and efficiency.

Fine-Tuned Resource Allocation

Diagonal scaling empowers you to increase the compute capacity of specific workloads that require additional resources to handle sudden surges effectively. Simultaneously, it enables the addition of new compute resources as per demand. This granular control over resource allocation ensures that your system remains agile and responsive to changing requirements.

Budgeting and Cost Efficiency

Diagonal scaling introduces a new level of budgeting and cost-effectiveness for businesses dealing with variable workload volumes. Instead of overprovisioning resources continuously to accommodate potential spikes, you can allocate resources precisely when and where they are needed. This strategic resource allocation not only optimizes costs but also enhances overall operational efficiency.


Harper: A Unified Solution for Diagonal Scaling

When considering the advantages of diagonal scaling and its potential to optimize system performance and cost, it's crucial to recognize that the right technology can make a significant difference. Harper, with its unified system architecture and configurable data replication capabilities, is a standout solution for efficiently harnessing the power of diagonal scaling.

Harper's Unified System Architecture

One of the key elements that makes Harper a great solution for diagonal scaling is its unified system architecture. Unlike many traditional database systems that require various components and complex configurations when scaling horizontally, Harper simplifies the process by providing all the components out of the box. With Harper, you have a single, cohesive system that reduces the number of moving parts in play when giving flexibility to expand geo-specific resources to accommodate increasing demands.

Configurable Data Replication

Harper goes a step further by offering configurable data replication. This means you can distribute resources asymmetrically to optimize certain nodes for higher usage, which is essential for efficient diagonal scaling. By intelligently allocating resources where they are needed most, Harper allows you to adapt to fluctuating workloads seamlessly, ensuring that your system remains agile and responsive to changing requirements.

Incorporating Harper into your diagonal scaling strategy can help you achieve the perfect balance between resource allocation and efficiency. This fine-tuned approach to scaling not only enhances your system's performance but also optimizes costs and overall operational efficiency. Harper represents a significant leap forward in system scalability and a powerful tool for businesses seeking to thrive in today's dynamic environment. 


Conclusion

Diagonal scaling represents a paradigm shift in data storage and cloud computing, offering an intelligent and responsive approach to resource management. By seamlessly blending vertical and horizontal scaling techniques, it provides the agility required to thrive in today's dynamic business environment. Embracing diagonal scaling can lead to improved performance, cost savings, and greater control over your infrastructure, making it a valuable tool for businesses of all sizes.

Diagonal scaling as it relates to a database and/or cloud computing is precisely what it sounds like - combining the best of both vertical and horizontal scaling to better suit the needs of the organization. When implemented correctly, diagonal scaling enables you to handle more data and more users, ultimately enhancing efficiency and reducing bottlenecks. 

In the database world, scaling typically refers to the process of adding more resources (such as servers, storage, or processing power) to handle increased data and workload demands. Common approaches to scaling databases include vertical scaling (adding more resources to a single server) and horizontal scaling (distributing the database across multiple servers).

Diagonal or hybrid scaling can be a game-changer, offering a dynamic solution to the challenges related to fluctuating workloads. Unlike traditional vertical and horizontal scaling approaches, diagonal scaling provides the flexibility to adapt to changing demands seamlessly. In this article, we will delve into the concept of diagonal scaling and its many benefits.

Types of Scaling 

Vertical Scaling (Scaling Up)

Vertical scaling involves adding more resources (such as CPU, RAM, or storage) to a single server or database instance. This approach is often used for databases that can't be easily partitioned or distributed, and it's suitable for workloads with limited growth potential. It can be costly because you need to invest in more powerful hardware, and there's a limit to how much you can scale vertically.

Horizontal Scaling (Scaling Out)

Horizontal scaling involves distributing the database workload across multiple servers or nodes.

This approach is highly scalable and is commonly used for handling large volumes of data and high traffic. Sharding and replication (or clustering) are common techniques used in horizontal scaling, and these methods can be more cost-effective and resilient than vertical scaling.

Read Scaling and Write Scaling:

We should also briefly touch on read and write scaling. Read Scaling involves optimizing the database to handle read-heavy workloads. Techniques like read replicas (copying data for read access) and caching mechanisms can be used to offload read traffic from the primary database. Write Scaling focuses on handling write-heavy workloads efficiently. Techniques such as partitioning, indexing, and optimizing write queries can help improve write performance.

Overall, one might consider that diagonal or hybrid scaling combines elements of both vertical and horizontal scaling to optimize database performance and cost. For example, you might vertically scale a database server and then use horizontal scaling by adding read replicas to distribute read traffic.


The Need for Diagonal Scaling

Imagine a scenario where your workload experiences sudden spikes, such as a surge in orders or users during certain months. Initially, when CPU utilization is manageable, a load balancer can easily adjust the capacity without any hiccups. However, as heavier tasks like processing large videos or other massive files become more time-consuming, some processes may require additional compute power. This situation can lead to a bottleneck in your system.

Enter diagonal scaling—a savior in times of imbalance. You can tweak the compute size, such as upgrading your RAM and storage size. By doing so, some instances can handle heavier workloads, while others can continue using the existing configuration. This intelligent allocation of resources prevents instances from being throttled, ensuring smooth operations.


Benefits of Diagonal Scaling

Uniting Vertical and Horizontal Scaling

Diagonal scaling offers the versatility to add resources precisely where they are needed in response to specific business scenarios. When there is a sudden surge in traffic, diagonal scaling swiftly accommodates the increased demand. Conversely, when traffic subsides, the configuration returns to its normal state. This dynamic approach strikes a perfect balance between resource allocation and efficiency.

Fine-Tuned Resource Allocation

Diagonal scaling empowers you to increase the compute capacity of specific workloads that require additional resources to handle sudden surges effectively. Simultaneously, it enables the addition of new compute resources as per demand. This granular control over resource allocation ensures that your system remains agile and responsive to changing requirements.

Budgeting and Cost Efficiency

Diagonal scaling introduces a new level of budgeting and cost-effectiveness for businesses dealing with variable workload volumes. Instead of overprovisioning resources continuously to accommodate potential spikes, you can allocate resources precisely when and where they are needed. This strategic resource allocation not only optimizes costs but also enhances overall operational efficiency.


Harper: A Unified Solution for Diagonal Scaling

When considering the advantages of diagonal scaling and its potential to optimize system performance and cost, it's crucial to recognize that the right technology can make a significant difference. Harper, with its unified system architecture and configurable data replication capabilities, is a standout solution for efficiently harnessing the power of diagonal scaling.

Harper's Unified System Architecture

One of the key elements that makes Harper a great solution for diagonal scaling is its unified system architecture. Unlike many traditional database systems that require various components and complex configurations when scaling horizontally, Harper simplifies the process by providing all the components out of the box. With Harper, you have a single, cohesive system that reduces the number of moving parts in play when giving flexibility to expand geo-specific resources to accommodate increasing demands.

Configurable Data Replication

Harper goes a step further by offering configurable data replication. This means you can distribute resources asymmetrically to optimize certain nodes for higher usage, which is essential for efficient diagonal scaling. By intelligently allocating resources where they are needed most, Harper allows you to adapt to fluctuating workloads seamlessly, ensuring that your system remains agile and responsive to changing requirements.

Incorporating Harper into your diagonal scaling strategy can help you achieve the perfect balance between resource allocation and efficiency. This fine-tuned approach to scaling not only enhances your system's performance but also optimizes costs and overall operational efficiency. Harper represents a significant leap forward in system scalability and a powerful tool for businesses seeking to thrive in today's dynamic environment. 


Conclusion

Diagonal scaling represents a paradigm shift in data storage and cloud computing, offering an intelligent and responsive approach to resource management. By seamlessly blending vertical and horizontal scaling techniques, it provides the agility required to thrive in today's dynamic business environment. Embracing diagonal scaling can lead to improved performance, cost savings, and greater control over your infrastructure, making it a valuable tool for businesses of all sizes.

Diagonal scaling represents a paradigm shift in data storage and cloud computing, offering an intelligent and responsive approach to resource management. By seamlessly blending vertical and horizontal scaling techniques, it provides the agility required to thrive in today's dynamic business environment. Embracing diagonal scaling can lead to improved performance, cost savings, and greater control over your infrastructure, making it a valuable tool for businesses of all sizes.

Download

White arrow pointing right
Diagonal scaling represents a paradigm shift in data storage and cloud computing, offering an intelligent and responsive approach to resource management. By seamlessly blending vertical and horizontal scaling techniques, it provides the agility required to thrive in today's dynamic business environment. Embracing diagonal scaling can lead to improved performance, cost savings, and greater control over your infrastructure, making it a valuable tool for businesses of all sizes.

Download

White arrow pointing right
Diagonal scaling represents a paradigm shift in data storage and cloud computing, offering an intelligent and responsive approach to resource management. By seamlessly blending vertical and horizontal scaling techniques, it provides the agility required to thrive in today's dynamic business environment. Embracing diagonal scaling can lead to improved performance, cost savings, and greater control over your infrastructure, making it a valuable tool for businesses of all sizes.

Download

White arrow pointing right

Explore Recent Resources

Blog
GitHub Logo

How a Shopify Custom Tie Shop Exposes a Common Flaw in Agent Architecture

Explore how a Shopify-based custom tie shop reveals a critical flaw in one LLM agent design strategy, and why context-first architectures with unified runtimes deliver faster, more accurate, and scalable customer support automation.
Blog
Explore how a Shopify-based custom tie shop reveals a critical flaw in one LLM agent design strategy, and why context-first architectures with unified runtimes deliver faster, more accurate, and scalable customer support automation.
Person with short dark hair and moustache, wearing a colorful plaid shirt, smiling outdoors in a forested mountain landscape.
Aleks Haugom
Senior Manager of GTM & Marketing
Blog

How a Shopify Custom Tie Shop Exposes a Common Flaw in Agent Architecture

Explore how a Shopify-based custom tie shop reveals a critical flaw in one LLM agent design strategy, and why context-first architectures with unified runtimes deliver faster, more accurate, and scalable customer support automation.
Aleks Haugom
Apr 2026
Blog

How a Shopify Custom Tie Shop Exposes a Common Flaw in Agent Architecture

Explore how a Shopify-based custom tie shop reveals a critical flaw in one LLM agent design strategy, and why context-first architectures with unified runtimes deliver faster, more accurate, and scalable customer support automation.
Aleks Haugom
Blog

How a Shopify Custom Tie Shop Exposes a Common Flaw in Agent Architecture

Explore how a Shopify-based custom tie shop reveals a critical flaw in one LLM agent design strategy, and why context-first architectures with unified runtimes deliver faster, more accurate, and scalable customer support automation.
Aleks Haugom
Blog
GitHub Logo

Nobody Wants to Pick a Data Center (And They Shouldn't Have To)

Harper Fabric simplifies cloud deployment by eliminating the need to choose data centers, automating infrastructure, scaling, and global distribution. Built for Harper’s unified runtime, it enables developers to deploy high-performance, distributed applications quickly without managing complex cloud configurations or infrastructure overhead.
Blog
Harper Fabric simplifies cloud deployment by eliminating the need to choose data centers, automating infrastructure, scaling, and global distribution. Built for Harper’s unified runtime, it enables developers to deploy high-performance, distributed applications quickly without managing complex cloud configurations or infrastructure overhead.
Headshot of a smiling woman with shoulder-length dark hair wearing a black sweater with white stripes and a gold pendant necklace, standing outdoors with blurred trees and mountains in the background.
Bari Jay
Senior Director of Product Management
Blog

Nobody Wants to Pick a Data Center (And They Shouldn't Have To)

Harper Fabric simplifies cloud deployment by eliminating the need to choose data centers, automating infrastructure, scaling, and global distribution. Built for Harper’s unified runtime, it enables developers to deploy high-performance, distributed applications quickly without managing complex cloud configurations or infrastructure overhead.
Bari Jay
Apr 2026
Blog

Nobody Wants to Pick a Data Center (And They Shouldn't Have To)

Harper Fabric simplifies cloud deployment by eliminating the need to choose data centers, automating infrastructure, scaling, and global distribution. Built for Harper’s unified runtime, it enables developers to deploy high-performance, distributed applications quickly without managing complex cloud configurations or infrastructure overhead.
Bari Jay
Blog

Nobody Wants to Pick a Data Center (And They Shouldn't Have To)

Harper Fabric simplifies cloud deployment by eliminating the need to choose data centers, automating infrastructure, scaling, and global distribution. Built for Harper’s unified runtime, it enables developers to deploy high-performance, distributed applications quickly without managing complex cloud configurations or infrastructure overhead.
Bari Jay
Blog
GitHub Logo

New RocksDB Binding for Node.js

rocksdb-js is a modern Node.js binding for RocksDB, offering full transaction support, lazy range queries, and a TypeScript API. Built for performance and scalability, it enables reliable write-heavy workloads, real-time replication, and high-concurrency applications in Harper 5.0 and beyond.
Blog
rocksdb-js is a modern Node.js binding for RocksDB, offering full transaction support, lazy range queries, and a TypeScript API. Built for performance and scalability, it enables reliable write-heavy workloads, real-time replication, and high-concurrency applications in Harper 5.0 and beyond.
Person with short hair and rectangular glasses wearing a plaid shirt over a dark T‑shirt, smiling broadly with a blurred outdoor background of trees and hills.
Chris Barber
Staff Software Engineer
Blog

New RocksDB Binding for Node.js

rocksdb-js is a modern Node.js binding for RocksDB, offering full transaction support, lazy range queries, and a TypeScript API. Built for performance and scalability, it enables reliable write-heavy workloads, real-time replication, and high-concurrency applications in Harper 5.0 and beyond.
Chris Barber
Apr 2026
Blog

New RocksDB Binding for Node.js

rocksdb-js is a modern Node.js binding for RocksDB, offering full transaction support, lazy range queries, and a TypeScript API. Built for performance and scalability, it enables reliable write-heavy workloads, real-time replication, and high-concurrency applications in Harper 5.0 and beyond.
Chris Barber
Blog

New RocksDB Binding for Node.js

rocksdb-js is a modern Node.js binding for RocksDB, offering full transaction support, lazy range queries, and a TypeScript API. Built for performance and scalability, it enables reliable write-heavy workloads, real-time replication, and high-concurrency applications in Harper 5.0 and beyond.
Chris Barber
Blog
GitHub Logo

Open Sourcing Harper

Harper is now open source, with its core platform released under Apache 2.0 and enterprise features source-available. This shift builds trust, enables community contributions, and positions Harper as a unified, transparent platform for developers and AI-driven applications.
Blog
Harper is now open source, with its core platform released under Apache 2.0 and enterprise features source-available. This shift builds trust, enables community contributions, and positions Harper as a unified, transparent platform for developers and AI-driven applications.
Person with shoulder‑length curly brown hair and light beard wearing a gray long‑sleeve shirt, smiling outdoors with trees and greenery in the background.
Ethan Arrowood
Senior Software Engineer
Blog

Open Sourcing Harper

Harper is now open source, with its core platform released under Apache 2.0 and enterprise features source-available. This shift builds trust, enables community contributions, and positions Harper as a unified, transparent platform for developers and AI-driven applications.
Ethan Arrowood
Apr 2026
Blog

Open Sourcing Harper

Harper is now open source, with its core platform released under Apache 2.0 and enterprise features source-available. This shift builds trust, enables community contributions, and positions Harper as a unified, transparent platform for developers and AI-driven applications.
Ethan Arrowood
Blog

Open Sourcing Harper

Harper is now open source, with its core platform released under Apache 2.0 and enterprise features source-available. This shift builds trust, enables community contributions, and positions Harper as a unified, transparent platform for developers and AI-driven applications.
Ethan Arrowood
Blog
GitHub Logo

The Resource API in Harper v5: HTTP Done Right

Harper v5's Resource API maps JavaScript class methods directly to HTTP verbs, eliminating routing and translation layers. Tables extend the same Resource class, unifying HTTP handling and data access into one interface. Key v5 additions include pre-parsed RequestTarget objects, Response-aware source caching with stale-while-revalidate support, and async context tracking via getContext().
Product Update
Blog
Harper v5's Resource API maps JavaScript class methods directly to HTTP verbs, eliminating routing and translation layers. Tables extend the same Resource class, unifying HTTP handling and data access into one interface. Key v5 additions include pre-parsed RequestTarget objects, Response-aware source caching with stale-while-revalidate support, and async context tracking via getContext().
Person with very short blonde hair wearing a light gray button‑up shirt, standing with arms crossed and smiling outdoors with foliage behind.
Kris Zyp
SVP of Engineering
Blog

The Resource API in Harper v5: HTTP Done Right

Harper v5's Resource API maps JavaScript class methods directly to HTTP verbs, eliminating routing and translation layers. Tables extend the same Resource class, unifying HTTP handling and data access into one interface. Key v5 additions include pre-parsed RequestTarget objects, Response-aware source caching with stale-while-revalidate support, and async context tracking via getContext().
Kris Zyp
Apr 2026
Blog

The Resource API in Harper v5: HTTP Done Right

Harper v5's Resource API maps JavaScript class methods directly to HTTP verbs, eliminating routing and translation layers. Tables extend the same Resource class, unifying HTTP handling and data access into one interface. Key v5 additions include pre-parsed RequestTarget objects, Response-aware source caching with stale-while-revalidate support, and async context tracking via getContext().
Kris Zyp
Blog

The Resource API in Harper v5: HTTP Done Right

Harper v5's Resource API maps JavaScript class methods directly to HTTP verbs, eliminating routing and translation layers. Tables extend the same Resource class, unifying HTTP handling and data access into one interface. Key v5 additions include pre-parsed RequestTarget objects, Response-aware source caching with stale-while-revalidate support, and async context tracking via getContext().
Kris Zyp
News
GitHub Logo

Harper 5.0 Is Here: Open Source, RocksDB, and a Runtime Built for the Agentic Era

Harper 5.0 launches with a fully open-source core under Apache 2.0, RocksDB as a native storage engine alongside LMDB, and source-available Harper Pro. This release delivers a unified runtime purpose-built for agentic engineering, from prototype to production.
Product Update
News
Harper 5.0 launches with a fully open-source core under Apache 2.0, RocksDB as a native storage engine alongside LMDB, and source-available Harper Pro. This release delivers a unified runtime purpose-built for agentic engineering, from prototype to production.
Person with short dark hair and moustache, wearing a colorful plaid shirt, smiling outdoors in a forested mountain landscape.
Aleks Haugom
Senior Manager of GTM & Marketing
News

Harper 5.0 Is Here: Open Source, RocksDB, and a Runtime Built for the Agentic Era

Harper 5.0 launches with a fully open-source core under Apache 2.0, RocksDB as a native storage engine alongside LMDB, and source-available Harper Pro. This release delivers a unified runtime purpose-built for agentic engineering, from prototype to production.
Aleks Haugom
Apr 2026
News

Harper 5.0 Is Here: Open Source, RocksDB, and a Runtime Built for the Agentic Era

Harper 5.0 launches with a fully open-source core under Apache 2.0, RocksDB as a native storage engine alongside LMDB, and source-available Harper Pro. This release delivers a unified runtime purpose-built for agentic engineering, from prototype to production.
Aleks Haugom
News

Harper 5.0 Is Here: Open Source, RocksDB, and a Runtime Built for the Agentic Era

Harper 5.0 launches with a fully open-source core under Apache 2.0, RocksDB as a native storage engine alongside LMDB, and source-available Harper Pro. This release delivers a unified runtime purpose-built for agentic engineering, from prototype to production.
Aleks Haugom