Skip to content

Commit 6d773f3

Browse files
authored
Merge pull request #276 from Green-Software-Foundation/dev
Merge Dev into Main - Release 1.1
2 parents 02be74f + c2a75d8 commit 6d773f3

9 files changed

+149
-17
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
version: 1.0
3+
submitted_by: markus-ntt-seidl
4+
published_date: 2023-10-25
5+
category: cloud
6+
description: Applications are built with a software architecture that best fits the business need they are serving. Cloud providers make it easy to evaluate other CPU types
7+
tags:
8+
- cloud
9+
- size:small
10+
---
11+
12+
# Evaluate other CPU architectures
13+
14+
## Description
15+
16+
Applications are built with a software architecture that best fits the business need they are serving. Cloud providers make it easy to evaluate other CPU types, such as x86-64, which can be included in the evaluation along with many cost effective alternatives that feature good performance per watt.
17+
18+
19+
## Solution
20+
21+
Other CPU architectures besides x86_64 should be evaluated for the application with energy efficiency and execution performance in mind.
22+
23+
## SCI Impact
24+
25+
`SCI = (E * I) + M per R`
26+
[Software Carbon Intensity Spec](https://grnsft.org/sci)
27+
28+
Evaluating other CPU architectures can impact SCI as follows:
29+
30+
- `E`: Other CPU architectures may provide better energy efficiency for the application use case and, as such, reduce the overall energy consumption
31+
32+
## Assumptions
33+
34+
- Assumes that the framework can be executed on other CPU architectures as well and is optimized for it
35+
36+
## Considerations
37+
38+
- Also consider specialized accelerators for workloads that cloud providers might offer
39+
40+
## References
41+
42+
- [Azure Well-Architected Framework Sustainability Pillar](https://learn.microsoft.com/en-us/azure/architecture/framework/sustainability/sustainability-application-design)
43+

docs/catalog/cloud/optimize-impact-on-customer-equipment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
version: 1.0
33
submitted_by: markus-ntt-seidl
4-
published_date: TBD
4+
published_date: 2022-11-09
55
category: cloud
66
tags:
77
- cloud

docs/catalog/cloud/remove-unused-assets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
version: 1.0
33
submitted_by: markus-ntt-seidl
4-
published_date: TBD
4+
published_date: 2022-11-22
55
category: cloud
66
tags:
77
- cloud
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
version: 1.0
3+
submitted_by: srini1978, markus-ntt-seidl
4+
published_date: 2023-10-25
5+
category: cloud
6+
description: When making calls across process boundaries to either databases or file systems or REST APIs, relying on synchronous calls can cause the calling thread to become blocked, putting additional load on the CPU
7+
tags:
8+
- cloud
9+
- size:medium
10+
---
11+
12+
# Use Asynchronous network calls instead of synchronous
13+
14+
## Description
15+
16+
When making calls across process boundaries to either databases or file systems or REST APIs, relying on synchronous calls can cause the calling thread to become blocked, putting additional load on the CPU.
17+
18+
## Solution
19+
20+
Using asynchronous patterns frees the calling thread from being blocked on the response and, as such, additional work can be achieved without CPU cycles being consumed.
21+
22+
## SCI Impact
23+
24+
`SCI = (E * I) + M per R`
25+
[Software Carbon Intensity Spec](https://grnsft.org/sci)
26+
27+
Using asyncronous calling patterns impacts SCI as follows:
28+
29+
- `E`: Optimal utilization of the CPU leads to reduced energy consumption
30+
- `M`: Optimized average CPU utilization can reduce the amount of resources needed which will decrease the amount of embodied carbon required to support them
31+
32+
## Assumptions
33+
34+
- The specific library for making asynchronous calls is available in the language being used for web development e.g. Task parallel library in C#.
35+
36+
## Considerations
37+
38+
- Consider higher level patterns for asynchronous communication as well e.g. Queues, Topics and Streams
39+
40+
## References
41+
42+
- Async/Await (https://en.wikipedia.org/wiki/Async/await)
43+
- [Azure Well-Architected Framework Sustainability Pillar](https://learn.microsoft.com/en-us/azure/architecture/framework/sustainability/sustainability-application-design)

docs/catalog/cloud/use-serverless.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
version: 1.0
33
submitted_by: markus-ntt-seidl
4-
published_date: TBD
4+
published_date: 2023-01-17
55
category: cloud
66
tags:
77
- cloud

docs/catalog/web/enable-text-compression.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
version: 1.0
33
submitted_by: markus-ntt-seidl
4-
published_date: TBD
4+
published_date: 2023-10-25
55
category: web
6+
description: Web browsers often communicate with web servers in a human readable format. These can be HTML, JavaScript and/or CSS files and REST requests which can return a response in JSON. This human readable communication is redundant and, as such, can be compressed to save bandwidth.
67
tags:
78
- web
89
- size:small
@@ -13,29 +14,29 @@ tags:
1314

1415
## Description
1516

16-
Web browsers often communicate with web servers in a human readable format. These can be HTML, JavaScript and/or CSS - files and also REST requests which can return a response in JSON. This communication is human readable and therefore highly redundant, therefore it can be highly compressed saving a lot of bandwidth.
17+
Web browsers often communicate with web servers in a human readable format. These can be HTML, JavaScript and/or CSS files and REST requests which can return a response in JSON. This human readable communication is redundant and, as such, can be compressed to save bandwidth.
1718

18-
Web browsers and servers can communicate the compression format dynamically via the "Accept-Encoding"/"Content-Encoding" HTTP Headers. This allows the communication to dynamically switch to compression formats both side support.
19+
Web browsers and servers can communicate the compression format dynamically via the "Accept-Encoding"/"Content-Encoding" HTTP Headers. This allows the communication to dynamically switch to compression formats both sides support.
1920

2021

2122
## Solution
2223

23-
Enable all supported compression formats on the server, this allows clients to use the best available format.
24+
Enable all supported compression formats on the server, allowing clients to use the best available format.
2425

2526

2627
## SCI Impact
2728

2829
`SCI = (E * I) + M per R`
2930
[Software Carbon Intensity Spec](https://grnsft.org/sci)
3031

31-
Concerning the SCI equation, the compression will impact the equation as follows:
32+
Enabling text compression will impact SCI as follows:
3233

33-
- `E`: Reducing the amount of emissions by reducing electricity needed while transferring and processing text files.
34-
- `M`: Reducing the amount of size of the files can also reduce the amount of storage requirements of the web page on the server
34+
- `E`: Reducing emissions by reducing the amount of electricity needed while transferring and processing text files
35+
- `M`: Reducing the size of the files can also reduce the storage requirements of the web page on the server
3536

3637
## Assumptions
3738

38-
- The ability to use web servers that allow compression formats
39+
- The use of web servers that allow compression formats
3940

4041
## Considerations
4142

docs/catalog/web/keep-request-counts-low.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
version: 1.0
33
submitted_by: markus-ntt-seidl
4-
published_date: TBD
4+
published_date: 2023-10-25
55
category: web
6+
description: Accessing a web page usually retrieves a HTML file from the web server. The HTML may then reference additional resources that the browser has to download.
67
tags:
78
- size:medium
89
- role:web-developer
@@ -13,19 +14,18 @@ tags:
1314

1415
## Description
1516

16-
Accessing a web page usually retrieves a HTML file from the web server. The HTML can then reference additional resources that the browser has to download.
17-
To use the least amount of CO2, reduce the amount of files needed to display a page in the browser.
17+
Accessing a web page usually retrieves a HTML file from the web server. The HTML may then reference additional resources that the browser has to download. More requests means more energy consumed. As such, reducing the amount of files needed to display a page in the browser also reduces the environmental impact.
1818

1919
## Solution
2020

21-
Reduce the amount of files needed and also the amount of requests done by the loaded JavaScript to display the final page.
21+
Reduce the amount of files needed and requests made by the loaded JavaScript in order to display the final page.
2222

2323
## SCI Impact
2424

2525
`SCI = (E * I) + M per R`
2626
[Software Carbon Intensity Spec](https://grnsft.org/sci)
2727

28-
Concerning the SCI equation, keeping the request counts low will impact:
28+
Keeping request counts low will impact SCI as follows:
2929

3030
- `E`: Reducing the amount of requests reduces the energy needed to display the page
3131
- `M`: Reducing the amount of requests can also reduce the amount of files and therefore the storage requirements of the web page on the server

docs/catalog/web/minimize-main-thread-work.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
version: 1.0
33
submitted_by: markus-ntt-seidl
4-
published_date: TBD
4+
published_date: 2022-11-22
55
category: web
66
tags:
77
- web
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
version: 1.0
3+
submitted_by: markus-ntt-seidl
4+
published_date: 2023-10-25
5+
category: web
6+
description: Use server-side rendering for high-traffic pages
7+
tags:
8+
- web
9+
---
10+
11+
# Use server-side rendering for high-traffic pages
12+
13+
## Description
14+
15+
Modern web applications feature a lot of interface elements that are stored in templates on the server. The template is downloaded with the application code and then rendered with requested data from the server.
16+
This can dramatically increase the SCI in different scenarios: When the client device doesn't have access to green energy, when the page usage is short (e.g. accidental clicks, pages with short dwell time like landing pages) or if a lot of server round-trips are needed to gather data.
17+
18+
19+
## Solution
20+
21+
Consider using server-side rendering as a method to reduce energy consumption on the client side. Frameworks like Angular or React already provide solutions on how to implement this efficiently.
22+
Server side rendering can improve site loading times (including rendering time on slower hardware), reduce network requirements (less round trips needed), and utilize caching (pre-rendered pages can be stored on the client device).
23+
24+
## SCI Impact
25+
26+
`SCI = (E * I) + M per R`
27+
[Software Carbon Intensity Spec](https://grnsft.org/sci)
28+
29+
Server side rendering will impact SCI as follows:
30+
31+
- `E`: Pre-rendering once can dramatically reduce energy consumption; pre-rendering on every request can reduce energy consumption if the server is more energy efficient and has access to green energy
32+
33+
## Assumptions
34+
35+
- Assumes that the frontend technology being used allows for pre-rendered content
36+
- Assumes that the web page is visited in high enough volumes so as to affect the overall SCI
37+
38+
## Considerations
39+
40+
- Consider using a caching mechanism to store rendered pages if they change frequently but are still met with a high load. This can significantly reduce the server load by serving pre-rendered content for frequent requests.
41+
- Consider the other patterns in the web category
42+
43+
## References
44+
45+
- [Azure Well-Architected Framework Sustainability Pillar](https://learn.microsoft.com/en-us/azure/architecture/framework/sustainability/sustainability-application-design)

0 commit comments

Comments
 (0)