¿Green Software?¿Esto de qué va?

A presentation at Software Crafters Barcelona in October 2022 in Barcelona, Spain by Oriol Tauleria

Slide 1

Slide 1

¿Green Software? ¿Esto de qué va? softwarecrafters.barcelona 2022

Slide 2

Slide 2

https://tysmagazine.com/sabes-lo-que-tiras-a-la-basura/ @uritau 2022

Slide 3

Slide 3

https://ourworldindata.org/co2-emissions @uritau 2022

Slide 4

Slide 4

Slide 5

Slide 5

@uritau 2022

Slide 6

Slide 6

https://www.climateimpact.com/news-insights/insights/infographic-carbon-footprint-internet/ @uritau 2022

Slide 7

Slide 7

Green Software Engineering @uritau 2022

Slide 8

Slide 8

Green software is software that is responsible for emitting fewer greenhouse gases. @uritau 2022

Slide 9

Slide 9

How? Using less physical resources Increasing life expectancy, sharing physical resources and optimizing its usage Using less energy Reducing the wasted energy, improving efficiency or in any way that could help Using energy more intelligently Consuming lower-carbon sources of energy or consuming electricity in a way that helps accelerate the energy transition

Slide 10

Slide 10

“If you can’t measure it, you can’t improve it.” Peter Drucker @uritau 2022

Slide 11

Slide 11

Software Carbon Intensity (SCI) @uritau 2022

Slide 12

Slide 12

The Software Carbon Intensity (SCI) specification gives an approach to developers to measure the carbon impact of their systems. @uritau 2022

Slide 13

Slide 13

SCI Amount of Carbon the software is emitting per Resource (API call, extra user, SaaS, microservice, ML Training system…)

Slide 14

Slide 14

SCI SCI = C * R

Slide 15

Slide 15

SCI ❖ Amount of Carbon the software is emitting per Resource (API call, extra user, SaaS, microservice, ML Training system…) ❖ The amount of Carbon is the sum of Operational emissions plus the embodied emissions

Slide 16

Slide 16

SCI SCI = (O + M) * R

Slide 17

Slide 17

SCI ❖ Amount of Carbon the software is emitting per Resource (API call, extra user, SaaS, microservice, ML Training system…) ❖ The amount of Carbon is the sum of Operational emissions plus the embodied emissions ❖ The operational emission is the location-based marginal carbon emission generated per the energy consumed by a software system

Slide 18

Slide 18

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

Slide 19

Slide 19

@uritau 2022

Slide 20

Slide 20

@uritau 2022

Slide 21

Slide 21

@uritau 2022

Slide 22

Slide 22

@uritau 2022

Slide 23

Slide 23

Slide 24

Slide 24

3 main responsibilities Consumers ● Choose “green” services ● Reduce unnecessary tech usage ● Limit transfer ● Communication good practices ● Long life devices ● Green energy @uritau 2022

Slide 25

Slide 25

3 main roles Consumers “Experts” ● Choose “green” services ● No tech by tech ● Reduce unnecessary tech usage ● Conscious choices ● Evangelize ● Critical opinions ● Limit transfer ● Communication good practices ● Add “SCI” into decisions ● Long life devices ● 5g, crypto, FullHD ● Green energy @uritau 2022

Slide 26

Slide 26

3 main roles Consumers “Experts” ● Choose “green” services ● No tech by tech ● Reduce unnecessary tech usage ● Conscious choices ● Evangelize ● Critical opinions ● Limit transfer ● Communication good practices ● Add “SCI” into decisions ● Long life devices ● 5g, crypto, FullHD ● Green energy @uritau Devs ● What else?!! 2022

Slide 27

Slide 27

Green Software Engineering @uritau 2022

Slide 28

Slide 28

Conscious infrastructure choses @uritau 2022

Slide 29

Slide 29

Measure it! @uritau 2022

Slide 30

Slide 30

@uritau 2022

Slide 31

Slide 31

@uritau 2022

Slide 32

Slide 32

Measure it! @uritau Efficient families 2022

Slide 33

Slide 33

Measure it! @uritau Efficient families FinOps 2022

Slide 34

Slide 34

FinOps https://adastraglobal.co/google-cloud-finops-on-gcp/ @uritau 2022

Slide 35

Slide 35

FinOps https://adastraglobal.co/google-cloud-finops-on-gcp/ @uritau 2022

Slide 36

Slide 36

FinOps ❤ Green Software @uritau 2022

Slide 37

Slide 37

Measure it! Efficient families “No todo vale” to scale Stop it if it’s not being used @uritau Elastic scaling Serverless 2022

Slide 38

Slide 38

https://www.nationalgrid.com/ @uritau 2022

Slide 39

Slide 39

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

Slide 40

Slide 40

Measure it! Efficient families Elastic scaling “No todo vale” to scale Stop it if it’s not being used Choose zones & times wisely @uritau Serverless 2022

Slide 41

Slide 41

#SCBCN22 PREMIUM DIVERSITY SUPPORTERS BASIC IX EDITION

Slide 42

Slide 42

Backend aware loads @uritau 2022

Slide 43

Slide 43

@uritau 2022

Slide 44

Slide 44

@uritau 2022

Slide 45

Slide 45

Measure it! Efficient families “No todo vale” Choose zones wisely If you don’t use it, stop it. Architecture patterns Digital Diogenes Measure it! @uritau 2022

Slide 46

Slide 46

Measure it! Efficient families “No todo vale” Choose zones wisely If you don’t use it, stop it. Architecture patterns Measure it! @uritau Digital Diogenes Languages selection 2022

Slide 47

Slide 47

https://kaspergroesludvigsen.medium.com/the-10-most-energy-efficient-programmi ng-languages-6a4165126670 @uritau 2022

Slide 48

Slide 48

Measure it! Efficient families “No todo vale” Choose zones wisely If you don’t use it, stop it. Architecture patterns Measure it! @uritau Languages selection Compiler tuning Digital Diogenes Architecture patterns 2022

Slide 49

Slide 49

https://medium.com/@juanhurtado10/domain-driven-design-for-monoliths-1f386e12 5d35 https://kaspergroesludvigsen.medium.com/the-10-most-energy-efficient-programmi ng-languages-6a4165126670 @uritau 2022

Slide 50

Slide 50

https://medium.com/@juanhurtado10/domain-driven-design-for-monoliths-1f386e12 5d35 @uritau https://www.infoq.com/presentations/uber-microservices-distributed-tracing/ 2022

Slide 51

Slide 51

Measure it! Efficient families “No todo vale” Choose zones wisely If you don’t use it, stop it. Architecture patterns Measure it! Languages selection Compiler tunning Digital Diogenes Architecture patterns Algorithms @uritau 2022

Slide 52

Slide 52

(Stand-up maths) https://www.youtube.com/watch?v=c33AZBnRHks @uritau 2022

Slide 53

Slide 53

https://www.youtube.com/watch?v=c33AZBnRHks @uritau 2022

Slide 54

Slide 54

Measure it! Efficient families “No todo vale” Choose zones wisely If you don’t use it, stop it. Architecture patterns Measure it! Languages selection Compiler tuning Algorithms Choose the best time to execute DBs design @uritau Digital Diogenes Architecture patterns 2022

Slide 55

Slide 55

On user-side aware loads @uritau 2022

Slide 56

Slide 56

Measure it! Efficient families “No todo vale” Choose zones wisely If you don’t use it, stop it. Architecture patterns Measure it! Languages selection Compiler tuning Algorithms Choose the best time to execute DBs design Digital Diogenes Architecture patterns Measure it! @uritau 2022

Slide 57

Slide 57

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

Slide 58

Slide 58

https://tools.pingdom.com/ Holaluz 2022

Slide 59

Slide 59

https://www.techadvisor.com/article/739921/how-to-see-whats-using-your-battery-on-android.html Holaluz 2022

Slide 60

Slide 60

Holaluz 2022

Slide 61

Slide 61

Measure it! Efficient families “No todo vale” Choose zones wisely If you don’t use it, stop it. Architecture patterns Measure it! Languages selection Compiler tuning Algorithms Choose the best time to execute DBs design Measure it! Dark mode @uritau Digital Diogenes Architecture patterns 2022

Slide 62

Slide 62

Measure it! Efficient families “No todo vale” Choose zones wisely If you don’t use it, stop it. Architecture patterns Measure it! Languages selection Compiler tuning Algorithms Choose the best time to execute DBs design Measure it! Dark mode 3rd party libraries One size for all? Support old devices @uritau Digital Diogenes Architecture patterns Conscious Networking 2022

Slide 63

Slide 63

@uritau 2022

Slide 64

Slide 64

@uritau 2022

Slide 65

Slide 65

Measure it! Efficient families “No todo vale” Choose zones wisely If you don’t use it, stop it. Architecture patterns Measure it! Languages selection Compiler tuning Algorithms Choose the best time to execute DBs design Measure it! Dark mode One size for all? Libraries & components Support old devices Updated versions @uritau Digital Diogenes Architecture patterns Conscious Networking 2022

Slide 66

Slide 66

UX ❤ Green Software @uritau 2022

Slide 67

Slide 67

@uritau 2022

Slide 68

Slide 68

@uritau 2022

Slide 69

Slide 69

Measure it! Efficient families “No todo vale” Choose zones wisely If you don’t use it, stop it. Architecture patterns Measure it! Languages selection Compiler tuning Algorithms Choose the best time to execute DBs design Measure it! Dark mode One size for all? Libraries & components Support old devices Updated versions @uritau Digital Diogenes Architecture patterns Conscious Networking 2022

Slide 70

Slide 70

Keep Software impact in mind @uritau 2022

Slide 71

Slide 71

Recap What is SCI? Software carbon intensity. MEASURE IT! Responsibility As users, experts and creators we have a great power. Let’s do something Keep in mind, it’s easy to improve our day to day.

Slide 72

Slide 72

https://wellwo.es/aprender-a-reciclar-que-va-en-cada-contenedor/

Slide 73

Slide 73

Thanks! To Read more: Github Green Software Foundation Green Software & Telco agenda Green principles Green Software foundation CREDITS: This presentation template was created by Slidesgo, including icons by Flaticon, infographics & images by Freepik @uritau 2022

Slide 74

Slide 74

Q&A @uritau 2022

Slide 75

Slide 75

Q&A (extended) Oriol Tauleria @uritau Engineering Director at Holaluz softwarecrafters.barcelona 2022