Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cache-static-data.md taking into account cost befinit analysis… #316

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

2BlackCoffees
Copy link

@2BlackCoffees 2BlackCoffees commented May 9, 2024

… of non frequently used cached data.

Title

Update cache-static-data

Version

Designation of iteration on the pattern. This will initially be assigned by the patterns working group

Submitted By

Jean-Philippe Ulpiano

Published Date

The date this version of the pattern is published. This will be provided by the patterns working group upon approval

Intent

Caching locally is not always recommended. Different level of caching could be used according to the usage pattern.

Tags

---
tags:
 - cloud
 - web
---

Problem

Reduce energy and emboddied carbon caching data instead of transmitting it.

Solution

How will this patter solve the problem

SCI Impact

`SCI = (E * I) + M per R`

Caching too much useless data might lead to an increase of memeory thus leading to an increase of E.
If so much more memroy is needed, then additional might be required thus leading to more embodied carbon.

Assumptions

Caching is important but sometimes might generate trade offs.

Pros & Cons

Discussion section for pros and cons of this pattern

- **PRO**: Caching often used data reduces data transfer: This makes sense for a successful and globally used application.
- **CON**: Caching data that is not required multiple times increases the static data size without any improvement.

… of non frequently used cached data.

Signed-off-by: Jean-Phi <[email protected]>
@russelltrow russelltrow added initial review proposed pattern An idea for a new pattern to submit labels May 13, 2024
@2BlackCoffees
Copy link
Author

Hi @russelltrow , do you need anything from me? This is just a suggestion fro improvement.

@greenhsu123 greenhsu123 self-requested a review July 2, 2024 14:13
@franziska-warncke franziska-warncke self-requested a review July 25, 2024 12:54

For frequently accessed static data, especially by multiple users, consider caching on a Content Delivery Network (CDN). This reduces individual data transfers per user request, minimizing overall energy consumption.

If data is required multiple times for each user then caching locally might be advantageous after a propet benefit analysis.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If data is required multiple times for each user then caching locally might be advantageous after a propet benefit analysis.
If data is required multiple times for each user then caching locally might be advantageous after a proper benefit analysis.

Shortening the distance a network packet travels means that less energy is required to transmit it. Similarly, from an embodied carbon perspective, we are more efficient with hardware when a network packet traverses through less computing equipment.
However, a cost analysis is key. We need to compare the energy cost of data transfer with the combined cost of local storage (including its embodied carbon footprint from increased memory usage).

For frequently accessed static data, especially by multiple users, consider caching on a Content Delivery Network (CDN). This reduces individual data transfers per user request, minimizing overall energy consumption.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For frequently accessed static data, especially by multiple users, consider caching on a Content Delivery Network (CDN). This reduces individual data transfers per user request, minimizing overall energy consumption.
For frequently accessed static data, especially by multiple users, consider caching on a Content Delivery Network(CDN). This reduces individual data transfers per user request, minimizing overall energy consumption.


## Solution
Caching static data, such as images or audio, instead of transferring it over the network.
Caching static data, such as videos, images or audio, instead of transferring it over the network if the cost benefit analysis proves it being more efficient.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caching static data, such as videos, images, or audio, instead of transferring it over the network if the cost-benefit analysis proves it being more efficient. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
initial review proposed pattern An idea for a new pattern to submit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants