Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Climate compensate with a pull request

Climate compensate with a pull request

Have you ever thought about that we who work with tech can influence the climate impact of the systems we develop? This persentation is about how we can improve the carbon footprint of the services that we build.

Andreas Bjärlestam

January 21, 2022
Tweet

More Decks by Andreas Bjärlestam

Other Decks in Technology

Transcript

  1. Two years ago, I received a new pair of glasses

    Hi! Photo by Bud Helisson on Unsplash
  2. Energy consumption depends on: • Sending and receiving data •

    Client screen usage • Client and server CPU activity
  3. Emissions also come from the development process • Travel •

    Office • Test environments • etc Photo by Marvin Meyer on Unsplash
  4. Example calculation • Input ◦ Amount of data transferred over

    networks ◦ Screen/device time per type ◦ Server running time ◦ Location of clients
  5. Use responsive images 169Kb 63Kb 37Kb 1920x1920 1024x1024 720x720 <img

    srcset="sprout-480w.jpg 480w, sprout-800w.jpg 800w" sizes="(max-width: 600px) 480px, 800px" src="sprout-800w.jpg" alt="Green sprout">
  6. Use modern image formats such as AVIF or WebP AVIF:

    50Kb WEBP: 100Kb JPG: 169Kb <picture> <source type="image/avif" srcset="sprout.avif"> <source type="image/webp" srcset="sprout.webp"> <img src="sprout.jpeg" alt="Green sprout"> </picture>
  7. Choose serverless or autoscaling if you can • With serverless,

    the machines can be more efficiently utilized • Autoscaling to zero means no energy consumption when it's not need
  8. Stop unused test environments • Serverless • Autoscale to zero

    • Or schedule them to stop when not needed Photo by John Smit on Unsplash
  9. Machine learning • Choose simple models instead of deep learning

    when possible • Train iteratively instead of retraining from scratch periodically • Use transfer learning
  10. Check your partners Check energy efficiency of your data center

    Check energy efficiency of any SaaS/PaaS/IaaS used Check energy efficiency of your CDN provider
  11. In general, hyper scale data centers are much more efficient

    than small local data centers This Photo by Unknown author is licensed under CC BY.
  12. Summary 1. Many small savings can make a big difference

    2. Reduce waisted data 3. Reduce waisted servers 4. Reduce waisted screen time 5. Make climate impact a factor in your decisions and priorities Photo by Bud Helisson on Unsplash
  13. Attributions & sources • https://unsplash.com/photos/kqguzgvYrtM • https://unsplash.com/photos/8BNO4HUQYRw • https://unsplash.com/photos/SYTO3xs06fU •

    https://unsplash.com/photos/hRI8f-2WyDw • https://app.electricitymap.org/map • https://www.flysas.com/en/sustainability/emissio n-calculator/ • https://www.max.se/maten/meny/maltider/ Photo by Михаил Павленко on Unsplash