Green-Software-Foundation / patterns

An online open-source database of software patterns reviewed and curated by the Green Software Foundation across a wide range of categories.
https://patterns.greensoftware.foundation/
Other
75 stars 29 forks source link

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

Open 2BlackCoffees opened 4 months ago

2BlackCoffees commented 4 months ago

… 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.
2BlackCoffees commented 4 months ago

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