-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #276 from Green-Software-Foundation/dev
Merge Dev into Main - Release 1.1
- Loading branch information
Showing
9 changed files
with
149 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
version: 1.0 | ||
submitted_by: markus-ntt-seidl | ||
published_date: 2023-10-25 | ||
category: cloud | ||
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 | ||
tags: | ||
- cloud | ||
- size:small | ||
--- | ||
|
||
# Evaluate other CPU architectures | ||
|
||
## 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, such as x86-64, which can be included in the evaluation along with many cost effective alternatives that feature good performance per watt. | ||
|
||
|
||
## Solution | ||
|
||
Other CPU architectures besides x86_64 should be evaluated for the application with energy efficiency and execution performance in mind. | ||
|
||
## SCI Impact | ||
|
||
`SCI = (E * I) + M per R` | ||
[Software Carbon Intensity Spec](https://grnsft.org/sci) | ||
|
||
Evaluating other CPU architectures can impact SCI as follows: | ||
|
||
- `E`: Other CPU architectures may provide better energy efficiency for the application use case and, as such, reduce the overall energy consumption | ||
|
||
## Assumptions | ||
|
||
- Assumes that the framework can be executed on other CPU architectures as well and is optimized for it | ||
|
||
## Considerations | ||
|
||
- Also consider specialized accelerators for workloads that cloud providers might offer | ||
|
||
## References | ||
|
||
- [Azure Well-Architected Framework Sustainability Pillar](https://learn.microsoft.com/en-us/azure/architecture/framework/sustainability/sustainability-application-design) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
version: 1.0 | ||
submitted_by: srini1978, markus-ntt-seidl | ||
published_date: 2023-10-25 | ||
category: cloud | ||
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 | ||
tags: | ||
- cloud | ||
- size:medium | ||
--- | ||
|
||
# Use Asynchronous network calls instead of synchronous | ||
|
||
## 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. | ||
|
||
## Solution | ||
|
||
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. | ||
|
||
## SCI Impact | ||
|
||
`SCI = (E * I) + M per R` | ||
[Software Carbon Intensity Spec](https://grnsft.org/sci) | ||
|
||
Using asyncronous calling patterns impacts SCI as follows: | ||
|
||
- `E`: Optimal utilization of the CPU leads to reduced energy consumption | ||
- `M`: Optimized average CPU utilization can reduce the amount of resources needed which will decrease the amount of embodied carbon required to support them | ||
|
||
## Assumptions | ||
|
||
- The specific library for making asynchronous calls is available in the language being used for web development e.g. Task parallel library in C#. | ||
|
||
## Considerations | ||
|
||
- Consider higher level patterns for asynchronous communication as well e.g. Queues, Topics and Streams | ||
|
||
## References | ||
|
||
- Async/Await (https://en.wikipedia.org/wiki/Async/await) | ||
- [Azure Well-Architected Framework Sustainability Pillar](https://learn.microsoft.com/en-us/azure/architecture/framework/sustainability/sustainability-application-design) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
version: 1.0 | ||
submitted_by: markus-ntt-seidl | ||
published_date: 2023-10-25 | ||
category: web | ||
description: Use server-side rendering for high-traffic pages | ||
tags: | ||
- web | ||
--- | ||
|
||
# Use server-side rendering for high-traffic pages | ||
|
||
## Description | ||
|
||
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. | ||
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. | ||
|
||
|
||
## Solution | ||
|
||
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. | ||
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). | ||
|
||
## SCI Impact | ||
|
||
`SCI = (E * I) + M per R` | ||
[Software Carbon Intensity Spec](https://grnsft.org/sci) | ||
|
||
Server side rendering will impact SCI as follows: | ||
|
||
- `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 | ||
|
||
## Assumptions | ||
|
||
- Assumes that the frontend technology being used allows for pre-rendered content | ||
- Assumes that the web page is visited in high enough volumes so as to affect the overall SCI | ||
|
||
## Considerations | ||
|
||
- 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. | ||
- Consider the other patterns in the web category | ||
|
||
## References | ||
|
||
- [Azure Well-Architected Framework Sustainability Pillar](https://learn.microsoft.com/en-us/azure/architecture/framework/sustainability/sustainability-application-design) |