TL;DR
Data centres used about 415 TWh in 2024 — 1.5% of world electricity — and AI is doubling it. How to measure, right-size, and schedule workloads so energy becomes an architecture decision, not a surprise bill.
For most of software's history, energy was somebody else's problem — the facilities team, the cloud bill, the ops budget. That stopped being true the moment AI workloads started doubling data-centre demand. The International Energy Agency puts data-centre electricity at about 415 TWh in 2024, roughly 1.5% of global electricity use, and projects it will more than double to around 945 TWh by 2030, with AI the main driver. The same report attributes about 180 million tonnes of CO2 to data-centre electricity in 2024. In Ireland, data centres already account for more than 20% of national electricity consumption; in at least five US states they have passed 10%.
The numbers matter less than what they imply for the people designing systems. Energy is now a load on the same grid your users live on, a line on the same bill your CFO reads, and — in the places where grids are constrained — a factor in whether your next deployment gets power at all. Energy-aware architecture is the response: treating where, when, and how much compute runs as design decisions with measurable carbon and cost consequences, instead of as accidents of defaults. It is not a greenwashing exercise. The same moves that cut energy — right-sizing, autoscaling, caching, scheduling deferrable work — cut the cloud bill by the same amount, which is why this is an architecture topic and not a compliance one.
The short version: measure first, with a per-unit-of-work score, because an unmeasured efficiency programme is a guess. Right-size everything, because idle capacity is the largest single source of wasted energy in most estates. Then shift what can move — deferrable work to cleaner hours, region-flexible work to cleaner grids — and be honest about what cannot move. Our guide to GPU cost attribution for AI workloads covers the money side of the same problem; this guide is the carbon side, and the two point in the same direction.
Measure first: the SCI and the energy bill
You cannot optimise what you cannot attribute, and the first mistake in green computing is measuring the wrong thing. Total energy use is a start, but a growing product will use more energy while becoming more efficient, and a shrinking one can look virtuous while wasting every watt. The useful unit is carbon per unit of work — per request, per transaction, per training run — so that efficiency and growth can be told apart.
The standard way to express that is the Software Carbon Intensity (SCI) specification from the Green Software Foundation, ratified as ISO/IEC 21031:2024. It decomposes a software system's emissions into three parts: SCI = ((E × I) + M) / R, where E is the energy the software consumes, I is the carbon intensity of the grid supplying that energy, M is the embodied carbon of the hardware, and R is the functional unit — the amount of useful work done. The formula is the whole programme in one line: reduce the energy, run it on a cleaner grid, amortise the hardware over more work, or do more work per watt. Every lever in this article is one of those four terms.
Two accounting traps to avoid. First, location-based versus market-based emissions: a vendor can report near-zero market-based emissions through renewable energy certificates while the electricity physically consumed by its data centres still comes from a grid that is roughly 30% coal, 26% natural gas, and 27% renewables, as the IEA's figures show. For architecture decisions, the location-based number — what the grid actually emitted — is the honest one; the market-based number is a procurement story. Second, the carbon dashboards the cloud vendors provide (AWS's Customer Carbon Footprint Tool, Google Cloud's carbon reporting, Azure's Emissions Impact Dashboard) are useful for attribution but lag by weeks and aggregate at the account level. They tell you where you have been, not what a deploy did yesterday. Pair them with your own per-service measurement — energy proxies from instance hours, request counts, and the SCI formula — if you want the number to change behaviour.
Start with a baseline and a single service. Pick the service with the largest instance-hours, compute its SCI for a month, and publish the number where the team can see it. A number that nobody sees changes nothing; a number on the dashboard next to latency and error rate gets discussed in the same review.
The three levers: use less, shift when, shift where
Every energy-aware decision is one of three moves, and keeping them separate is what makes the work tractable. Use less: run the same work on fewer watts — right-sizing, autoscaling, caching, leaner code. Shift when: run deferrable work at the hour the grid is cleanest. Shift where: run region-flexible work on the cleanest grid you can reach. The order matters: efficiency first, because a watt you never use needs no clean grid; then shifting, because a watt you must use is cheapest in carbon at the right hour and place.
The three levers also have different owners, which is why the work stalls when it is treated as one project. Efficiency is the application team's job — instance sizes, cache hit rates, query shapes. Shifting when is the platform team's job — schedulers, queues, batch windows. Shifting where is the architecture team's job — region strategy, data residency, latency budgets. A programme that assigns all three to one team gets none of them. A programme that assigns each to the team that already owns the system it touches gets all three, slowly, which is the only speed that works.
There is a fourth consideration that cuts across all three: the rebound. Making compute cheaper per unit of work reliably increases the amount of work done — Jevons' paradox, in its most boring and most reliable form. An efficiency programme that celebrates a 30% reduction in energy per request while requests triple has not reduced emissions; it has subsidised growth. The SCI score per unit of work is the guardrail here: track it alongside the absolute number, and be honest when growth outruns efficiency. The goal is not a smaller number on a slide. It is a system that does more useful work per gram of carbon, and a team that knows which of the two numbers moved.
Right-sizing: the lever that pays twice
Right-sizing is the least glamorous lever and the largest. Most estates run a long tail of over-provisioned services — instances sized for a peak that happened once, a database with twice the memory it uses, a GPU attached to a job that spends its time waiting on I/O. Every idle watt is a watt that no scheduling trick can recover, and the cloud bill agrees: the same instance that wastes energy wastes money, which is why this lever never needs a sustainability business case. It needs a cost one, and the cost one is already written.
The discipline is unglamorous and specific. Measure utilisation per service for a full business cycle — a week at minimum, a month if the workload is seasonal — and size for the 95th percentile with headroom, not for the peak with panic. Autoscale on the metric that actually saturates: CPU for compute-bound services, memory for caches, queue depth for workers. Scale to zero where the workload allows it: scheduled jobs, preview environments, and batch workers that sit idle between runs are pure waste when they hold instances overnight. And cache aggressively, because the cheapest request is the one that never reaches the compute layer — a cached response costs a fraction of a watt of the recomputation it replaces.
There are two honest limits. First, right-sizing has a floor: a service that is already small cannot get much smaller, and the savings concentrate in the handful of services that dominate instance-hours. Profile before you optimise; the top five services usually hold most of the waste. Second, aggressive autoscaling can hurt latency if the scale-up is slower than the traffic spike — cold starts, container pulls, and connection warm-up are real costs. Size for the spike you can predict and queue the spike you cannot, rather than holding capacity for a peak that never comes. Our comparison of edge and regional inference placement makes the same point from the latency side: placement and sizing are one decision, not two.
Carbon-aware scheduling: move the work, not the data centre
Some work cannot move in space but can move in time, and that is where carbon-aware scheduling earns its keep. Training runs, batch ETL, report generation, CI pipelines, video transcoding, model evaluation — all of it is deferrable by hours, and the grid's carbon intensity varies by hour as solar rises and falls and wind comes and goes. Running a six-hour training job at 2 a.m. on a windy night instead of 6 p.m. on a still evening can cut its emissions substantially, for zero change in the result.
The mechanism is a scheduler that knows the grid. Carbon-intensity data is available from providers such as Electricity Maps, which publishes real-time and forecast intensity per grid zone, and several cloud vendors now expose the same signal in their own scheduling products. The shape of the integration is small: a job that is queued with a deadline, a check of the forecast intensity for the window, and a decision to run now or wait. A minimal version, in plain Python, shows how little is needed:
# carbon_gate.py — run the job now, or wait for a cleaner hour?
# intensity_gco2_per_kwh comes from your grid-intensity provider;
# the threshold is a policy choice, not a physical constant.
def should_run_now(intensity_gco2_per_kwh: float, threshold: float = 200.0) -> bool:
return intensity_gco2_per_kwh <= threshold
def schedule_batch_job(job, intensity_now: float, deadline_hours: float) -> str:
if should_run_now(intensity_now):
job.run()
return "ran now: grid is clean enough"
if deadline_hours <= 1:
job.run()
return "ran now: deadline forces it, intensity be damned"
job.defer(hours=1)
return "deferred one hour: waiting for a cleaner grid"The honest version of this section is the caveat. Shifting load to off-peak hours does not always reduce emissions: research cited by the Green Software Foundation shows that in regions where the baseload generation is carbon-intensive, shifting to off-peak hours can increase emissions even as it reduces cost, because the marginal generator at night is dirtier than the one at midday. The rule is not "run at night" — it is "run when the intensity is low," and the only way to know is to look at the data for the specific grid. A scheduler that shifts blindly on the clock is a cost optimisation wearing a carbon costume. Google's own demand-flexibility work makes the same point in practice: the company shifts machine-learning and non-urgent compute to times when clean electricity is available, and reported emissions down about 12% in 2024 despite energy demand rising about 28% — the result of shifting on the signal, not on a schedule.
Region choice: the cheapest carbon is a different grid
The second shift is in space. Grid carbon intensity varies enormously by region: a workload running in a region powered largely by hydro or nuclear can emit a fraction of the same workload in a coal-heavy region. For region-flexible work — batch processing, training, analytics, anything without a latency or residency constraint — the region is the single largest carbon decision in the architecture, and it is made once, at provisioning time, and then forgotten.
Google Cloud publishes per-region carbon data for its locations, and the pattern it reveals is the point: regions are not interchangeable on carbon, and the cleanest region is often not the one nearest the team. The decision framework is simple: for each workload, ask whether its data can legally leave its current region, whether its users can tolerate the added latency, and whether the carbon saving is worth the operational cost of running in two places. Training and analytics usually pass all three tests. User-facing request paths usually fail the second. The middle ground — a primary region for serving and a clean region for the batch and training that supports it — is where most teams land, and it is a good landing.
The limits are real and should be stated plainly. Data residency law pins some workloads to a jurisdiction, and no carbon saving overrides a legal requirement. Latency pins others: a user-facing API that moves from a 20 ms region to a 120 ms region has made the product worse, and the carbon saving does not compensate for a product people stop using. And there is a second-order effect worth watching: if every team moves its batch work to the same clean region, that region's grid absorbs the load, and the marginal generator there may be dirtier than the average suggests. Region choice is a decision to revisit annually, not a tattoo. Check the intensity data, check the law, check the latency — and move only the work that passes all three.
The embodied side: hardware lives longer than the hype
The SCI formula has a term that most software teams ignore: M, the embodied carbon of the hardware — the emissions from mining, manufacturing, and shipping the servers the software runs on. For a typical cloud workload the operational energy dominates, but the embodied share grows as grids get cleaner and as hardware turns over faster. AI hardware is the sharp end of this: GPU generations turn over in three to five years, and the manufacturing footprint of a rack of accelerators is substantial before the first watt of training runs.
The lever here is lifetime. Extending a server's useful life from three years to five amortises its embodied carbon over two more years of work. In practice that means resisting the reflex upgrade, running mixed generations instead of forklift replacements, and choosing refurbished or previous-generation hardware for workloads that do not need the newest silicon — inference on a previous-generation GPU, for example, is often the same speed for a fraction of the embodied cost. The counter-argument is efficiency: newer hardware is more energy-efficient per unit of work, and keeping an old server can cost more in operational energy than it saves in embodied carbon. Both effects are real, and the honest answer is to compute them for the specific hardware: the newer generation wins when its efficiency gain outweighs the embodied cost of manufacturing it, which is usually true for GPUs under heavy load and often false for lightly loaded general-purpose servers.
There is also a procurement lever that costs nothing: ask the vendor. Cloud providers publish the embodied-carbon assumptions behind their dashboards, and hardware vendors increasingly publish lifecycle assessments for their servers. A team that buys on total carbon — embodied plus operational — makes different choices than one that buys on sticker price alone, and the difference is usually a generation behind the bleeding edge, which is also where the price is best.
Recommendation
For a team starting from nothing, the order of work is: pick one service, compute its SCI for a month, and publish the number. Right-size the top five services by instance-hours, with autoscaling on the metric that saturates and scale-to-zero for anything that sleeps. Then add carbon-aware scheduling to the deferrable batch work, driven by real grid-intensity data for the specific region, with a deadline override so the business never waits on the weather. Then move the region-flexible batch and training work to the cleanest region that passes the latency and residency tests. Revisit the region choice annually and the SCI number monthly. The serverless platform comparison is a useful companion here: scale-to-zero platforms are the extreme end of the right-sizing lever, and the same logic applies.
Architecture Decision
Decision: Adopt energy-aware architecture as a standing practice, measured by the Software Carbon Intensity (SCI) score per unit of work: right-size the top services by instance-hours with autoscaling and scale-to-zero, schedule deferrable batch work against real grid-intensity data with a deadline override, place region-flexible batch and training in the lowest-carbon region that passes latency and residency tests, and extend hardware lifetimes where the efficiency maths supports it.
Context: The team's cloud bill is growing with AI workloads, and the IEA projects data-centre electricity will more than double to around 945 TWh by 2030. The same moves that cut energy cut cost, so the work does not need a separate sustainability budget — but without a measurement, the team cannot tell efficiency from growth, and without a policy, each deploy re-decides the region and the schedule by default. Our GPU cost attribution guide covers the money side of the same workloads.
Options considered: (1) The layered model above. (2) Do nothing and let the cloud bill be the only signal — cheapest to start, and it works until the bill stops being the binding constraint, which in constrained grids is the power allocation, not the money. (3) Buy offsets and report net-zero — fast, and it changes nothing about the system; the emissions still happen, and the offset is a receipt, not an architecture. (4) Move everything to the cleanest region — the largest single carbon cut, but it fails the latency test for user-facing paths and the residency test for regulated data. (5) Optimise only for energy per request — the SCI numerator without the denominator's discipline; it rewards a system that gets more efficient while growing its absolute emissions.
Why this one: The layered model separates the levers by owner — efficiency to the application team, scheduling to the platform team, placement to the architecture team — so each moves at the speed of the system it touches. The SCI score is the guardrail that keeps efficiency honest against growth, and the intensity data is what keeps scheduling honest against the clock. The deadline override and the annual region review are what keep the practice from becoming a religion: the business never waits on the weather, and the region choice is a decision, not a tattoo.
What it costs you: Measurement is a permanent small tax — per-service energy proxies, a dashboard, a monthly review. Schedulers that wait for clean hours add latency to batch results, and the team has to accept that a report can be an hour late when the grid is dirty. Multi-region operation is real operational overhead: two regions to monitor, two sets of runbooks, and a placement decision for every new workload. And the embodied-carbon maths is approximate — lifecycle data varies by vendor and generation, so the hardware-lifetime call is a judgement, not a calculation.
When to reverse it: On a workload that is entirely latency-sensitive and region-pinned, the shifting levers do not apply — right-size it, measure it, and stop there. Reverse the scheduling policy the moment deferrals start missing business deadlines: the deadline override exists for a reason, and a scheduler that the team learns to bypass is worse than no scheduler. Reverse the region choice when the intensity data changes — grids decarbonise, and the cleanest region of 2026 may not be the cleanest of 2028. And drop the whole programme if the SCI number is never read: a measurement nobody looks at is a dashboard, not a decision, and the effort belongs on the cost side instead.
When NOT to chase the green lever
The model is not free, and there are situations where the honest answer is simpler. Do not add carbon-aware scheduling to a workload whose results are needed on a fixed clock — a report that must land at 8 a.m. cannot wait for the wind, and the deadline override will fire every day, which means the scheduler is theatre. Do not move a workload to a cleaner region when the latency cost lands on users: a product that gets slower loses the users whose requests you were trying to make cleaner. Do not buy offsets as a substitute for the architecture work — offsets are a procurement decision, and they do not change the system. Do not optimise energy per request while ignoring the absolute number: a system that gets 30% more efficient while tripling its traffic has grown its emissions, and the celebration is misplaced. And do not build the measurement before the first right-sizing pass — the top five services by instance-hours are almost always over-provisioned, and the savings there are larger than any scheduling optimisation, with no dashboard required.
The test for whether the practice is working is one question: can the team say, for its largest service, what its carbon per unit of work was last month, what moved it, and what will move it next month? If the answer is a number and a cause, the model is running. If the answer is a shrug and a cloud bill, the energy is still somebody else's problem — and the grid, the CFO, and the 2030 projection are all waiting for the team to notice. The goal was never to make the system virtuous. It is to make energy a design input like latency and cost: measured, budgeted, and decided on purpose, one deploy at a time. That is the whole discipline, and it is enough.
Why This Matters
Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.
Trade-offs to Consider
Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.
When NOT to Use This
Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.
Decision Framework
Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.