WritingScalewayScalewaypublished Jun 29, 2023seen 5d

How can engineers make IT more sustainable? Part 3: Green IT case studies

Open original ↗

Captured source

source ↗
published Jun 29, 2023seen 5dcaptured 3dhttp 200method plain

How can engineers make IT more sustainable? Part 3: Green IT case studies Build • James Martin • 29/06/23 • 7 min read

The digital sector generates 4% of global greenhouse emissions. Data centers and hardware are the main contributors to that impact. But those machines — not to mention all software, websites, apps and more — run on code written by developers. This means their work’s impact is far from negligible. So how can engineers, and indeed anyone shaping tech today, reduce that impact?

In part 2 , we looked at how cloud, hardware, software and websites’ impact could be measured. Now, our third chapter dives into concrete cases of how green IT principles were applied, and the results they gave. Read on for inspiration!

Telco makes 30% energy savings by simplifying codebase

One compelling example of the power of green coding comes from consultancy BCG — via the Green Software Foundation (GSF) — which worked with a major telecommunications company to improve the efficiency of its codebase. After a SonarQube analysis established the code’s efficiency was optimizable — notably because it wasn’t being cached — BCG worked to simplify the code , notably by improving patterns and by avoiding using unnecessarily large clusters.

In cases like this, when the refreshed codebase is then used at scale throughout a large organization, the energy savings can be considerable. And indeed they were! BCG tracked a 30% reduction in energy used by the telco’s IT systems , 2019-2020. This was accompanied by a lowering of its SCI, or Software Carbon Intensity , the level of emissions coming from its infrastructure’s software.

Other factors that can help here, says the GSF, are very simple: good, straightforward, efficient code consumes less energy per se; and turning off unused servers at night. Look no further!

10-15% energy savings with greener hosting & eco-design

Hosterra , a French startup founded in 2022, offers ‘green hosting’ to its clients, who are principally web agencies. To do so, it uses Bare Metal products hosted in Scaleway’s own DC5 (below, one of Europe’s most sustainable data centers, as it uses 30-40% less energy and 90% less water than standard facilities). Thanks to Scaleway’s publicly available energy and water consumption data , Hosterra regularly shares with its clients how much energy and water their websites are consuming.

DC5, one of Europe’s most sustainable data centers

This approach is particularly relevant for Kodama , a web agency based in Lille (Northern France), which specializes in creating sustainable, or “eco-designed” websites. Conscious that, like physical products, the full life cycle of a website can have different degrees of impact, it charges clients a monthly fee, rather than a set one. This way, it takes care of clients’ websites from creation, to maintenance, and then to decommissioning.

“We discovered that combining two virtuous companies gave a twice-as-virtuous result”, says Hosterra founder Pierre Lannoy , who notably suggested Kodama use LiteSpeed web servers as an alternative to Apache, as the former “requires 30% less CPU cycles than Apache to do the same job”.

As a result, Kodama’s Yannick Chizzolini says websites created by Kodama consume 10-15% less energy since it started working with Hosterra ; as well as incalculably large savings in terms of the water consumed to cool servers. Indeed, DC5 relies on free cooling most of the year, and only needs water during warmer summer months, when it moistens paper membranes through which air is passed, to then cool down the servers.

“It would have been challenging for Kodama to make these changes without us”, says Lannoy. “ Some of their clients even ask for websites that are 96% compliant with the RGESN ” (France’s extremely strict guidelines for eco-designed websites, which are set to become the European gold standard).

Expectations are high… as indeed they should be!

Static websites: a frugal alternative to WordPress

As covered in part 2, the average website page weight has jumped by 191% in the past 10 years . One way to combat this trend is to entirely bypass traditional CMS, like WordPress, which is currently used to make around 40% of the world’s websites. Why? Because, as Scaleway DevOps Engineer Bastien Wirtz points out, they tend to call on considerable server resources (PHP & MySQL in particular) to generate HTML content on-demand, both when a page is consulted, and when it’s modified.

An alternative is static websites , or sites that are served as statically rendered HTML, instead of dynamically generated by a web server . By using a workflow based on content pre-rendering, they only generate HTML when content is modified, not when it’s consulted. As such, if you’re looking to eco-design a website, this is a great option to look into.

Just how “eco” are static sites though? Wirtz made a test site, and deployed it on Wordpress, and on static site creation tool Hugo … and the results speak for themselves:

Hugo WordPress WordPress admin Total size (source code) 0.63 Mb 71 Mb Page size 4 kb 96 kb 1876 kb Number of requests 2 6 49 DOM size 50 100 833 EcoScore A A D

Although this is just a test case comparing a basic Hugo site with a similarly spartan WordPress one, Wirtz established that static sites’ HTML can be 24 times less heavy . And this is just the start of static sites’ advantages. Because their server needs are so small, hosting costs are minimal , both in terms of energy consumption, and financially speaking.

Furthermore, as the HTML is decorrelated from the website source code itself, the latter needs no updates, nor does it require maintenance of PHP, or other engines. And as added bonuses, security breach risks are reduced, as there is no code on the server side; and static sites load much quicker than regular ones, which is also ideal both for SEO and for energy consumption.

That said, static websites can’t do everything standard ones can. For example, they can’t process data directly, so are limited when it comes to databases. But they can draw on external services, via their API. Serverless functions — which also only use energy when they’re being used — are particularly apt here, says Wirtz.

Discover a comprehensive list of static site building tools here ; find out in more detail how to create a static website here ; and look out for Wirtz’ own full guide soon, right here on Scaleway Blog!

Saving 59 tons of CO2 with one WordPress plugin

If you are…

Excerpt shown — open the source for the full document.