In the emerging business model and technology known as cloud computing, there has been discussion regarding whether a private solution, a cloud-based utility service, or a mix of the two is optimal. My analysis examines the conditions under which dedicated capacity, on-demand capacity, or a hybrid of the two are lowest cost. The analysis applies not just to cloud computing, but also to similar decisions, e.g.: buy a house or rent it; rent a house or stay in a hotel; buy a car or rent it; rent a car or take a taxi; and so forth.

To jump right to the punchline(s), **a pay-per-use solution obviously makes sense if the unit cost of cloud services is lower than dedicated, owned capacity.** And, in many cases, clouds provide this cost advantage.

Counterintuitively, though, **a pure cloud solution also makes sense even if its unit cost is higher**, as long as the peak-to-average ratio of the demand curve is higher than the cost differential between on-demand and dedicated capacity. In other words, even if cloud services cost, say, twice as much, a pure cloud solution makes sense for those demand curves where the peak-to-average ratio is two-to-one or higher. This is very often the case across a variety of industries. The reason for this is that the fixed capacity dedicated solution must be built to peak, whereas the cost of the on-demand pay-per-use solution is proportional to the average.

Also important and not obvious, **leveraging pay-per-use pricing, either in a wholly on-demand solution or a hybrid with dedicated capacity turns out to make sense any time there is a peak of “short enough” duration.** Specifically, if the percentage of time spent at peak is less than the inverse of the utility premium, using a cloud or other pay-per-use utility for at least part of the solution makes sense. For example, even if the cost of cloud services were, say, four times as much as owned capacity, they still make sense as part of the solution if peak demand only occurs one-quarter of the time or less.

In practice, this means that cloud services should be widely adopted, since absolute peaks rarely last that long. For example, today, Cyber Monday, represents peak demand for many etailers. It is a peak who’s duration is only one-three hundred sixty-fifth of the time. Online flower services who reach peaks around Valentine’s Day and Mother’s day have a peak duration of only one one-hundred eightieth of the time. While retailers experience most of their business during one month of the year, there are busy days and slow days even during those peaks. “Peak” is actually a fractal concept, so if cloud resources can be provisioned, deprovisioned, and billed on an hourly basis or by the minute, then instead of peak month or peak day we need to look at peak hours or peak minutes, in which case the conclusions are even more compelling.

I look at the optimal cost solutions between dedicated capacity, which is paid for whether it is used or not, and pay-per-use utilities. My assumptions for this analysis are that pay-per-use capacity is 1) paid for when used and not paid for when not used; 2) the cost for such capacity does not depend on the time of request or use; 3) the unit cost for on-demand or dedicated capacity does not depend on the quantity of resources requested; 4) there are no additional relevant costs needed for the analysis; 5) all demand must be served without delay.

These are assumptions which may or may not correspond to reality. For example, with respect to assumption (1), most pay-per-use pricing mechanisms offered today are pure. However, in many domains there are membership fees, non-refundable deposits, option fees, or reservation fees where one may end up paying even if the capacity is not used. Assumption (2) may not hold due to the time value of money, or to the extent that dynamic pricing exists in the industry under consideration. A (pay-per-use) hotel room may cost $79 on Tuesday but $799 the subsequent Saturday night. Assumption (3) may not hold due to quantity discounts or, conversely, due to the service provider using yield management techniques to charge less when provider capacity is underutilized or more as provider capacity nears 100% utilization Assumption (4) may or may not apply based on the nature of the application and marginal costs to link the dedicated resources to on-demand resources vs. if they were all dedicated or all on-demand. As an example, there may be wide-area network bandwidth costs to link an enterprise data center to a cloud service provider’s location. Finally, assumption (5) actually says two things. One, that we must serve all demand, not just a limited portion, and two, that we don’t have the ability to defer demand until there is sufficient capacity available. Serving all demand makes sense, because presumably the cost to serve the demand is greatly exceeded by the revenue or value of serving it. Otherwise, the lowest cost solution is zero dedicated and zero utility resources; in other words, just shut down the business. In some cases we can defer demand, e.g., scheduling elective surgery or waiting for a restaurant table to open up. However, most tasks today seem to require nearly real-time response, whether it’s web search, streaming a video, buying or selling stocks, communicating, collaborating, or microblogging.

It is tempting to view this analysis as relating to “private enterprise data centers” vs. “cloud service providers,” but strictly speaking this is not true. For example, the dedicated capacity may be viewed as owned resources in a co-location facility, managed servers or storage with fixed capacity under a long term lease or managed services contract, or even “reserved instances.” By “dedicated” we really mean “fixed for the time period under consideration.” For this reason, I will use the terms “pay-per-use” or “utility” rather than “cloud” except when providing colloquial interpretations.

Let the demand **D** for resources during the interval **0** to **T** be a function of time **D( t), 0 **

**<=**

*t***<=**

**T**.

This demand can be characterized by mean mu **μ(D)**, which we shall simply call **A**, and a peak or maximum ** max(D)** which we shall simply call

**P**. Needless to say, based on the definitions of mean and maximum,

**A**

**<=**

**P.**For example, the average demand

**A**might be for 9 CPU cores, with a peak

**P**of 31 CPU cores.

Let the unit cost per unit time of fixed capacity be **C**, and let **U** be the utility premium. By utility premium, I mean the multiplier for utility (pay-per-use) capacity vs. fixed. The unit cost of on-demand capacity is then **U * C**. For example, **C** might be $2.00 per core hour for fixed capacity. If on-demand capacity costs $3.00 per core hour, then **U** would be 1.5, i.e., there is a 50% premium for on-demand capacity.

To be slightly more precise, because on-demand capacity is assumed to be pure pay-per-use, in contrast to fixed capacity which is paid for whether or not it is used, there is a premium when the capacity is used, and a 100% discount when the capacity is not used. As stated above, this assumption may not be valid in all cases.

If **U = 1**, then fixed capacity and on-demand capacity cost the same. If **U < 1**, then pay-per-use resources (e.g., the cloud) are cheaper on a unit-cost basis. It has been argued that economies of scale and statistics of scale can make cloud providers’ unit costs lower. If **U > 1**, then pay-per-use resources (e.g., the cloud) are assessed to be more expensive on a unit-cost basis, as at least one study claims. Even under these unit cost assumptions, a pure utility or hybrid solution may be less expensive in terms of total cost, as we shall see.

Thanks to assumption (2), we can rearrange the demand curve to be monotonically non-decreasing, i.e., in ascending order, to help illustrate the points. In practical terms, this means that, for a site supporting special events, like concert or movie ticket sales, if they have a peak during 3 days each month, we can just treat it as if this peak occurred for 36 days at the end of the year. This reordering doesn’t impact mean, max, or any of the calculations below, but makes it easier to understand the proofs. In the real world, such an assumption may not be the case. Continuously growing, or at least non-decreasing, demand may be suitable for resourcing via fixed capacity.

Finally, it should be noted that thanks to assumptions (2) and (3), the cost of providing utility capacity to meet the demand **D** is just the utility premium **U** times the base cost **C** times the arithmetic mean **A** times the duration of time **T**. In other words, if the price of a hotel room doesn’t vary based on day or quantity–and we ignore the time value of money–then renting 8 rooms on one night and 2 rooms the next night costs the same as renting 5 rooms for two nights. This is because **Σ U * C * D(t _{i}), i = 0 -> T = U * C * Σ D(t_{i}), i = 0 -> T = U * C * A * T**.

IfProposition 1:U < 1, that is, the utility premium is less than unity, a pure pay-per-use solution costs less than a pure dedicated solution.

The cost of the pay-per-use solution isProof:A * U * C * T. The cost of a dedicated solution built to peak isP * C * T. SinceA<=PandU < 1,

A * U * C * T<=P * U * C * T < P * 1 * C * T = P * C * TTherefore, the pay-per-use solution costs less than the dedicated solution.

Colloquially, the cloud total cost is advantaged due to only paying for resources when needed, as well as paying less for those resources when used.

IfProposition 2:Uequals1, that is the utility premium is unity, andA = P, that is demand is flat, then a pure pay-per-use solution costs the same as a pure dedicated solution built to peak.

The cost of the pay-per-use solution isProof:A * U * C * T. The cost of a dedicated solution built to peak isP * C * T. SinceA = PandU = 1,

A * U * C * T = P * U * C * T = P * 1 * C * T = P * C * TTherefore, the pay-per-use solution costs the same as the dedicated solution.

In other words, if there is no difference between unit costs, and there is no variability in demand, it doesn’t matter which strategy you use. Of course, this assumes that your demand is predictable and that there is no financial risk, neither of which is typically the case. Even if you believed this to be true, all other things being equal, you might prefer the cloud solution due to demand forecasting risk and due to financial risk, e.g., residual values being lower than projected or changes in tax laws.

IfProposition 3:U = 1and demand is not flat, that isA < Pthen a pure pay-per-use solution costs less than a pure dedicated solution.

The cost of the pay-per-use solution isProof:A * U * C * T. The cost of a dedicated solution built to peak isP * C * T. SinceA < PandU = 1,

A * U * C * T < P * U * C * T = P * 1 * C * T = P * C * TTherefore, the pay-per-use solution costs less than the dedicated solution.

Interestingly, even if the unit cost of the pay-per-use utility is higher than the dedicated capacity, the total cost may be lower if the demand curve is “spiky” enough.

Even if the utility premiumProposition 4:Uis greater than1, if it is less than the peak-to-average ratioP / A, that is,1 < U < ( P / A ), then a pure pay-per-use solution costs less than a pure dedicated solution.

Again, the cost of the pay-per-use solution isProof:A * U * C * T. The cost of a dedicated solution built to peak isP * C * T. SinceU < (P / A)

A * U * C * T < A * (P / A) * C * T = P * C * TTherefore, the pay-per-use solution costs less than the dedicated solution.

In other words, as I point out in my first law of Cloudonomics, even if a utility costs more (on a unit cost basis), the total cost can be lower than a dedicated solution, because of the savings when resources are not needed due to variations in demand. The more “spiky” the demand is, the higher rate one might be willing to pay for the utility. For example, if one needs a car every day for years, it makes sense to own / finance / lease it, for a rate of, say, ten dollars a day. If one needs a car for only a few days, it makes sense to rent it, even though the rate might be, say, fifty dollars a day. And if one needs a car for only a few minutes, it makes sense to grab a taxi, even though paying a dollar a minute works out to an equivalent rate of over a thousand dollars per day.

Let us define the total duration of the peak of the demand **D **to be** T _{p}**.

**That is, even if there are multiple periods when**

**D**is at peak, we sum them up to get

**T**. This turns out to be an important criterion for determining the value of hybrid clouds.

_{p}

If the utility premiumProposition 5:Uis greater than1, and(T, that is, the percentage duration of the peak is less than the inverse of the utility premium, then a hybrid solution costs less than a dedicated solution._{p}/ T) < (1 / U)

Consider the cost of a hybrid solution consisting ofProof:P – εdedicated resources with any overflow handled on demand by pay-per-use capacity. Because utility resources are only required to handle theεworth of demand, and this demand only occurs for a duration ofTof time, the total cost to solution the demand is:_{p}

[(P –ε) * T * C] + [ε* T_{p}* C * U]However, since

T, multiplying both sides by_{p}/ T < 1 / UT * Uwe see thatT. But then,_{p}* U < T

[ε* T_{p}* C * U] < [ε* T * C]Which provides the inequality we need, namely that the total cost of the hybrid solution is

[(P –ε) * T * C] + [ε* T_{p}* C * U] < [(P –ε) * T * C] + [ε* T * C]Since

[(P –ε) * T * C] + [ε* T * C] = P * T * Cis the cost of dedicated capacity, the total cost of the hybrid solution is less than the cost of dedicated capacity.

Note that **P – ****ε**** **is not necessarily an *optimal* solution, it just helps to demonstrate that there is a cheaper way to do things than using dedicated resources when the peak is sufficiently short-lived. To find an optimal solution we would need to know more about the characteristics of the underlying demand curve, as we shall see below.

Conversely, let us define the total duration of non-zero demand to be** T _{NZ}**.

**That is, even if there are multiple periods when**

**D**is greater than zero, we sum up their durations to get

**T**. This turns out to be an important criterion for determining when a hybrid architecture beats a pure cloud.

_{NZ}

If the utility premium is greater than unity and the percentage duration of non-zero demand is greater than the inverse of the utility premium, i.e.,Proposition 6:(T, then a hybrid solution costs less than a pure pay-per-use solution._{NZ}/ T) > (1 / U) < 1

This proof is the mirror image of the prior one. Consider the cost of a hybrid solution consisting ofProof:εdedicated resources with the remainder addressed by on-demand resources. The cost of serving this extra remaining demand doesn’t change between the pure pay-per-use and the proposed hybrid solution, so we need only consider the differential between using a dedicated solution and a utility solution for this firsteof demand. The cost of serving this demand with utility resources isε* T. The cost of serving the demand with dedicated resources is_{NZ}* U * Cε* T * C.Since

T_{NZ}/ T>1 / U, equivalently1 / U<T, so multiplying both sides by_{NZ}/ TT * Ugives us the inequalityT<T. Then_{NZ}* U

ε* T * C<ε* T_{NZ}* U * CTherefore, a hybrid solution costs less than the pure utility.

In other words, if there is usually some baseline demand and utilities are somewhat costly, you may as well serve the typical baseline demand with the cheaper dedicated resources and save the on-demand resources for the variable portion of the demand. As Jens Lapinski put it when commenting on one of my articles, a good rule of thumb is to “own the base, and rent the spike.”

Knowing that, under the right conditions, a cost-optimal solution may be a hybrid cloud does not tell us what balance of dedicated and on-demand resources achieves the optimum balance. For that, we will solve a specific example first, then argue for the general condition.

LetProposition 7:Dbe uniformly distributed with peakPand the utility premiumU > 1. Then the optimal hybrid solution consists ofP / Uon-demand capacity andP – (P / U)dedicated resources.

Let the fixed capacity beProof:Fand any demand over this amount be served by variable, on-demand pay-per-use capacityV, whereF + V = P.The total cost of the solution is then the sum of the fixed cost plus the on-demand cost. The fixed cost is just

F * T * C. The variable cost is based on the size of the triangle, which has heightV. The base of the triangle is based on the proportion betweenVandP, namely(V / P) * T. The cost, which is based on the area of the triangle, is½V * (V / P) * T * U * C, so the total cost is:

[F * T * C] + [ ½V * (V / P) * T * U * C]

TandCare common, so this is just:

[T * C] * [F + ½V * (V / P) * U]Substituting

(P – V)forFand simplifying terms, the total cost is

[T * C] * [(P – V) + ½V^{2 }/ P * U]The minimum occurs when the slope / derivative is zero. To solve this, it helps to remember that the derivative of a constant is zero, the derivative of a sum is the sum of the derivatives (as long as they exist), the derivative of x

is^{n}nx^{n}^{-1}, and the derivative of a constant times a function is the constant times the derivative of the function.TandCare non-zero constants, so we take the derivative with respect to V and set it to zero, getting a minimum at:

0 = [T * C] * [0 – 1 + V * U / P]So,

0 / [T * C] = [0 – 1 + V * U / P]Then

0 = 0 – 1 + V * U / POr, simplifying

1 = V * U / PSo the minimum occurs when

V / P = 1 / U.

In other words, for uniformly distributed demand, the percentage of resources that should be on-demand is the inverse of the utility premium. If there is no premium, all resources should be on-demand, if the utility premium is 2, half the resources should be on-demand, if the utility premium is 4, a quarter of the resources should be on-demand, and so forth.

It turns out that this points the way to finding an optimal hybrid solution for any demand curve. Utility simulation models can be used to determine where the optimal solution lies, but the key insight is that if there is a lot of use, one may as well use dedicated resources, whereas if there is infrequent use, one should use a pay-per-use strategy. The break-even point occurs where the cost of a dedicated solution equals the cost of a pay-per-use solution, which is when the percentage of use is **1 / U**. For a fixed solution, the cost to service a sliver of demand for **ε** resources enduring for a period ** T/U** would be **ε**** * C * T**, whereas for a pay-per-use solution, the cost would be **ε**** * T/U * U * C**, which is of course the same. This also means that there may not be a single optimum, but a range of optimal solutions that are equal cost because while there is a break-even point, for some curves, a “break-even zone” of a quantity of resources with the same duration can exist, and any of those resources can be assigned to dedicated or pay-per-use fulfillment without impacting the total cost.

These last few propositions show the value of hybrid resourcing strategies. If there is a short enough period of peak demand, rather than use only dedicated resources it makes sense to slice at least that out of the total solution and use on-demand pay-per-use resources to serve it. On the other hand, if there is a long enough duration of non-zero demand, you may as well use dedicated resources to serve that baseline.

So, these are the criteria for determining when pure clouds, pure dedicated solutions, or hybrid dedicated and pay-per-use solutions may be cost-optimal. The analysis above is oversimplified, since it assumes that there are no additional (marginal) costs for hybrid solutions. Whether there are or not ultimately depends on the nature of the application and the architecture implementation and cost structure, as I discuss in 4 ½ Ways to Deal with Data During Cloudbursts.

While, strictly speaking, this isn’t proof of the inevitability of cloud computing, I’ve used reasonably rigorous math to determine the conditions under which cloud computing is relevant. And, because these conditions are so easily met given the demand fluctuations and price differentials seen in the real world, it means that cloud computing should be at least a part of virtually every enterprise’s IT strategy.

Joe Weinman is employed by a large telecommunications and cloud services company. The views expressed herein are his own, and not necessarily the views of his employer. (C) 2009 Joe Weinman

## 3 Comments

Hi Joe,

Overall, this is an amazing peice of work. You have, to the best of my limited ability to judge, laid out a mathematical model for calculating operations costs in a data center. I’d like to see this become a staple for CIOs and managers trying to find a way to be precise about their operations.

I find the demonstration of cost projections around peak load especially amazing. I’d haul it out to anyone who balks at virtualizing.

I guess my main quibble is that for most, security and privacy are going to be the paramount concern; not cost.

Data simply can’t be reduced to unit/cost. It’s uniquely valuable and uniquely vulnerable within an enterprise, and despite the overwhelming (over time) pressure to use compute utilities, security and privacy are going to remain unsurmountable obstacles.

You’ve made the point that we trust banks with out money, a good analogy, and you say that it took a while for the public to come on board for that idea. I submit that without the iron-clad regulations, international treaties and hundreds of years of track record, we’d still be putting most of it in our mattresses. There has to be something equivalent to that before enterprises who can afford not to, will trust their data to another.

Maybe that will happen sooner rather than later, but it hasn’t yet.

carlbrooks wrote:”There has to be something equivalent to that before enterprises who can afford not to, will trust their data to another.”

But all enterprises already trust their data to the same people that are going to be providing clouds – the telcos. Unless your enterprise is completely isolated and in a single datacenter with no remote access then you transport all of that valuable data across telco links on a daily basis. It’s these same telcos who already have all of your information that you will be trusting with enterprise cloud.

You could argue a data at rest vs data in transit side to this but in the end data is data and if you’re not protecting it at rest like you do while it’s in transit then you have bigger issues to worry about rather than whether you trust your telco or not.

This is entirely a mindset thing on the security side. People always write that it’s the main barrier to cloud adoption when really we have bigger issues than security (licensing for one). Security concerns are being met today by private clouds or purpose built regulated clouds, etc. This post has shown that the economics work out so we can’t use that as an excuse. Security likewise is being met and it’s time to cross that off the excuse list as well.

Joe, I noticed you just joined Telx. Congrats. And so I stumbled upon this amazing work. I’ve been looking at average and marginal costs and scaling of networks and effects of pricing on demand for 20 years. Historically I’ve maintained that monopolies focus on average, not marginal, costs, so that marginal users are incentivised to create their own private networks. Through competition and “digitization”, growth accelerates due to a) normal pricing elasticity (impact to comms, time and financial budgets), b) application elasticity (new ways of using), and c) private shift to public as high volume users return to “public” or hybrid networks. I’ve applied this to data networks and voice networks in the competitive WAN in the early 1990s and wireless networks in the mid-to-late 1990s when I was the first to predict 800 minutes/month on average. Right now I am looking to apply these concepts to OTT and wifi offload and competitive broadband at the edge. Data and ethernet exchanges are a big part of this analysis. Would love to chat or meet when you have time. Michael Elling

## 5 Trackbacks/Pingbacks

[…] Mathematical Proof of the Inevitability of Cloud Computing […]

[…] #11 The act of sharing (e.g. via delicious…) or RTing a URL to an article you haven’t actually read (but you think it makes you look smart). For example, I’d love to give a test to everyone who RTed this entry. […]

[…] key drivers of the economics of the solutions depend on a variety of factors, including the enterprise applications portfolio, demand variability, and user experience […]

[…] link: https://cloudonomics.wordpress.com/2009/11/30/mathematical-proof-of-the-inevitability-of-cloud-comput… […]

[…] well no. Not exactly. What we have is proof that cloud computing is more efficient. This means you will save money if demand does not […]