SlideShare a Scribd company logo
1 of 35
Download to read offline
Planet friendly Web
Development with Django
Chris Adams
Djangocon Europe 2017
Chris Adams:
@acdha
Successful, prolific, well
known django developer
Chris Adams:
@mrchrisadams
Not this guy… This guy
Environmentally focussed
web generalist
A.M.E.E. (Avoid Mass
Extinction Engine) - CO2
calculation APIs
Loco2 - Low CO2 travel
in Europe by train
TeaLight - Low CO2
cups of tea, with
demand response
My Background:
Djangocon 2017 - Planet Friendly Web Development@mrchrisadams
Djangocon 2017 - Planet Friendly Web Development@mrchrisadams@mrchrisadamsWhat can a technologist do about climate change: worrydream.com/climatechange
Djangocon 2017 - Planet Friendly Web Development@mrchrisadams
http://www.iea.org/media/news/2017/GlobalCarbonEmissions2.png
http://www.iea.org/newsroom/news/2017/march/iea-finds-co2-emissions-flat-for-third-straight-year-even-as-global-
economy-grew.html
Djangocon 2017 - Planet Friendly Web Development@mrchrisadamshttp://folk.uio.no/roberan/t/global_mitigation_curves.shtml
Djangocon 2017 - Planet Friendly Web Development@mrchrisadams@mrchrisadamsWorld GHG Emissions in 2010 - Analysis by ECOFYS
Source* Greenhouse gas
Coal
25%
Natural Gas
19%
Oil
21%
Waste
0.4%
Sector
Direct
emissions
34.6%
* Greenhouse gases can arise from two sources
N20
7%
CH4
15%
CO2
76%
HFCs & PFCs
2%
Transport
15%
Residential Buildings
11%
Commercial/Public Buildings & Services
7%
Land Use
Change
15%
Industry
29%
7%
6.0%
4.8%
4.3%
1.4%
1.1%
1.0%
10.5%
1.5%
2.6%
10.5%
5.5%
1.4%
1.8%
3.1%
4.4%
10.3%
Other industries
Paper, pulp and printing
Food and tobacco
Non-ferrous metals
Chemical and petrochemical
Iron and steel
Non-metallic minerals
Aviation
Others
Road
Livestock and manure
Agricultural Energy Use
Coal Mining
Oil and gas extraction, refining and processing
Deforestation/Afforestation and Land Use CO2
Agricultural soils
1.3%
1.6%
Landfills
Waste water & othersWaste 3%
Agriculture
Energy Supply
13% 8.3%Energy industry own use & losses
Djangocon 2017 - Planet Friendly Web Development@mrchrisadams© 2011-2012 GreenTouch Consortium
2020 ICT Carbon Footprint
820m tons CO2
360m tons CO2
260m tons CO2
2007 Worldwide ICT

carbon footprint:

2% = 830 m tons CO2
Comparable to the

global aviation 

industry
Expected to grow 

to 4% by 2020
The Climate Group, GeSI
Report “Smart 2020”, 2008
Full report - https://www.slideshare.net/greentouch-org/intro-to-green-touch
Djangocon 2017 - Planet Friendly Web Development@mrchrisadams
A mental model for
thinking about this
Djangocon 2017 - Planet Friendly Web Development@mrchrisadams
Your Servers
Your Packets
Your Process
Your servers
Provider
Provisioning
Your servers
Provider:
Where did the power your
servers run on come from?
Power quote
From 2017 report - http://www.greenpeace.org/usa/global-warming/click-clean/
Your servers
Provision:
How many server resources do
you use? And when?
The power of wireless cloud 2013 (CEET - http://www.ceet.unimelb.edu.au/publications)
“many workloads are spiky or
drop to zero for extended
periods… applications used in
the workplace may only be
active for 40 of the 168 hours in
a week.”
Adrian Cockroft
@adrianco: AWS, ex Netflix
@mrchrisadams
https://medium.com/@adrianco/evolution-of-business-logic-from-monoliths-through-microservices-to-functions-
ff464b95a44d#.4ap421dwr
PaaS:
Higher unit cost in
exchange for
easier scaling
FaaS / Serverless:
Even higher unit
cost, to not think
about scaling*
* You still need to obviously, but differently
“the technical capabilities of
serverless might not be that
exciting, but the financial side
sure is… Strong financial
incentives for good design
practices, and clear financial
penalties for bad design” Gojko Adzic
@mrchrisadamshttps://gojko.net/2016/08/27/serverless.html
When your second biggest cost after
staff is data centres, you have a very
good incentive to care about saving
energy.
@mrchrisadamshttps://deepmind.com/blog/deepmind-ai-reduces-google-data-centre-cooling-bill-40
Platform as a Service (PaaS) Functions as a Service
django-configurations
Cloudfoundry: App Autoscaler zappa
Heroku: Autoscaling & LightSwitch chalice
In the Django toolbox
Your packets
Lossy changes
Lossless changes
http://www.electricitymap.org/
“Wireless access network
technologies account for 90% of
total wireless cloud energy
consumption. Data centres account
for only about 9%. The energy
consumption of wireless user
devices is negligible.”
The power of wireless cloud 2013 (CEET - http://www.ceet.unimelb.edu.au/publications)
Power quote
The power of wireless cloud 2013 (CEET - http://www.ceet.unimelb.edu.au/publications)
https://www.soasta.com/blog/page-bloat-2015-web-performance-monitoring/
Power quote
https://performancebudget.io
Power quote
https://speedcurve.com (see also sitespeed.io for an OSS take)
Your packets
Lossy changes:
How much of what you send is
used by the client?
Your packets
Lossless changes:
How efficiently are the bits
sent?
Dynamic Static Media
compression
Django middleware &
decorators
Whitenoise, CDNs,
Nginx
CDNs, Nginx
caching
Django middleware &
decorators
Whitenoise, CDNs CDNs, Nginx
JS optimisation
Webpack 2, Google
Closure Compiler (JS)
nginx mod_pagespeed
Image Optimisation ImageOptim, Trimage
easy-
thumbnails.optimise,
nginx mod_pagespeed
Relevant in the Django toolbox
There’s much, much more to do, but
starting here can help
Thanks!
I’m around all week, and in the
slack channel to chat. Say
hello :)
Chris Adams
@mrchrisadams
productscience.co.uk
https://www.slideshare.net/chris.d.adams
Djangocon 2017 - Planet Friendly Web Development@mrchrisadams
Bonus life-changing link:
What can a technologist do about
climate change? - Bret Viktor
worrydream.com/climatechange

More Related Content

Similar to Djangocon Europe 2017: Planet Friendly Django

short talk at Kean
short talk at Keanshort talk at Kean
short talk at KeanDerek Chang
 
MapR and Cisco Make IT Better
MapR and Cisco Make IT BetterMapR and Cisco Make IT Better
MapR and Cisco Make IT BetterMapR Technologies
 
AWS Cloud Kata | Taipei - Opening Keynote
AWS Cloud Kata | Taipei - Opening KeynoteAWS Cloud Kata | Taipei - Opening Keynote
AWS Cloud Kata | Taipei - Opening KeynoteAmazon Web Services
 
Cloud costs: my 2 cents
Cloud costs: my 2 centsCloud costs: my 2 cents
Cloud costs: my 2 centsRightScale
 
AWS Cloud Kata | Bangkok - Opening Keynote
AWS Cloud Kata | Bangkok - Opening KeynoteAWS Cloud Kata | Bangkok - Opening Keynote
AWS Cloud Kata | Bangkok - Opening KeynoteAmazon Web Services
 
AWS Cloud Kata | Manila - Opening Keynote
AWS Cloud Kata | Manila - Opening KeynoteAWS Cloud Kata | Manila - Opening Keynote
AWS Cloud Kata | Manila - Opening KeynoteAmazon Web Services
 
Digital Workplaces - Jenseits von Cargo Cults
Digital Workplaces - Jenseits von Cargo CultsDigital Workplaces - Jenseits von Cargo Cults
Digital Workplaces - Jenseits von Cargo CultsKarsten Ehms
 
[DOST] OpenStack & the Enterprise Hybrid Cloud - Tech, People, Processes
[DOST] OpenStack & the Enterprise Hybrid Cloud - Tech, People, Processes[DOST] OpenStack & the Enterprise Hybrid Cloud - Tech, People, Processes
[DOST] OpenStack & the Enterprise Hybrid Cloud - Tech, People, ProcessesGerd Prüßmann
 
‘Edge’ Technologies: a new language of innovation
‘Edge’ Technologies: a new language of innovation‘Edge’ Technologies: a new language of innovation
‘Edge’ Technologies: a new language of innovationDXC Eclipse
 
ArangoML Pipeline Cloud - Managed Machine Learning Metadata
ArangoML Pipeline Cloud - Managed Machine Learning MetadataArangoML Pipeline Cloud - Managed Machine Learning Metadata
ArangoML Pipeline Cloud - Managed Machine Learning MetadataArangoDB Database
 
Andrii Soldatenko "The art of data engineering"
Andrii Soldatenko "The art of data engineering"Andrii Soldatenko "The art of data engineering"
Andrii Soldatenko "The art of data engineering"Fwdays
 
Online productivity tools - SILS20090
Online productivity tools - SILS20090Online productivity tools - SILS20090
Online productivity tools - SILS20090is20090
 
K5.Fujitsu World Tour 2016-Winning with NetApp in Digital Transformation Age,...
K5.Fujitsu World Tour 2016-Winning with NetApp in Digital Transformation Age,...K5.Fujitsu World Tour 2016-Winning with NetApp in Digital Transformation Age,...
K5.Fujitsu World Tour 2016-Winning with NetApp in Digital Transformation Age,...Fujitsu India
 
The Three Pillars of Agile Integration: Connector, Container & API
The Three Pillars of Agile Integration: Connector, Container & APIThe Three Pillars of Agile Integration: Connector, Container & API
The Three Pillars of Agile Integration: Connector, Container & APIJudy Breedlove
 
Hitch-hikers guide to AI for Connected and Autonomous Vehicles
Hitch-hikers guide to AI for Connected and Autonomous VehiclesHitch-hikers guide to AI for Connected and Autonomous Vehicles
Hitch-hikers guide to AI for Connected and Autonomous VehiclesBill Harpley
 
Workshop About Software Engineering Skills 2019
Workshop About Software Engineering Skills 2019Workshop About Software Engineering Skills 2019
Workshop About Software Engineering Skills 2019PhuocNT (Fresher.VN)
 

Similar to Djangocon Europe 2017: Planet Friendly Django (20)

short talk at Kean
short talk at Keanshort talk at Kean
short talk at Kean
 
MapR and Cisco Make IT Better
MapR and Cisco Make IT BetterMapR and Cisco Make IT Better
MapR and Cisco Make IT Better
 
AWS Cloud Kata | Taipei - Opening Keynote
AWS Cloud Kata | Taipei - Opening KeynoteAWS Cloud Kata | Taipei - Opening Keynote
AWS Cloud Kata | Taipei - Opening Keynote
 
Cloud costs: my 2 cents
Cloud costs: my 2 centsCloud costs: my 2 cents
Cloud costs: my 2 cents
 
Meetup Spark UDF performance
Meetup Spark UDF performanceMeetup Spark UDF performance
Meetup Spark UDF performance
 
AWS Cloud Kata | Bangkok - Opening Keynote
AWS Cloud Kata | Bangkok - Opening KeynoteAWS Cloud Kata | Bangkok - Opening Keynote
AWS Cloud Kata | Bangkok - Opening Keynote
 
AWS Cloud Kata | Manila - Opening Keynote
AWS Cloud Kata | Manila - Opening KeynoteAWS Cloud Kata | Manila - Opening Keynote
AWS Cloud Kata | Manila - Opening Keynote
 
Cloud Seeding
Cloud SeedingCloud Seeding
Cloud Seeding
 
Digital Workplaces - Jenseits von Cargo Cults
Digital Workplaces - Jenseits von Cargo CultsDigital Workplaces - Jenseits von Cargo Cults
Digital Workplaces - Jenseits von Cargo Cults
 
[DOST] OpenStack & the Enterprise Hybrid Cloud - Tech, People, Processes
[DOST] OpenStack & the Enterprise Hybrid Cloud - Tech, People, Processes[DOST] OpenStack & the Enterprise Hybrid Cloud - Tech, People, Processes
[DOST] OpenStack & the Enterprise Hybrid Cloud - Tech, People, Processes
 
‘Edge’ Technologies: a new language of innovation
‘Edge’ Technologies: a new language of innovation‘Edge’ Technologies: a new language of innovation
‘Edge’ Technologies: a new language of innovation
 
ArangoML Pipeline Cloud - Managed Machine Learning Metadata
ArangoML Pipeline Cloud - Managed Machine Learning MetadataArangoML Pipeline Cloud - Managed Machine Learning Metadata
ArangoML Pipeline Cloud - Managed Machine Learning Metadata
 
Andrii Soldatenko "The art of data engineering"
Andrii Soldatenko "The art of data engineering"Andrii Soldatenko "The art of data engineering"
Andrii Soldatenko "The art of data engineering"
 
Online productivity tools - SILS20090
Online productivity tools - SILS20090Online productivity tools - SILS20090
Online productivity tools - SILS20090
 
Digital Workloads on AWS
Digital Workloads on AWSDigital Workloads on AWS
Digital Workloads on AWS
 
K5.Fujitsu World Tour 2016-Winning with NetApp in Digital Transformation Age,...
K5.Fujitsu World Tour 2016-Winning with NetApp in Digital Transformation Age,...K5.Fujitsu World Tour 2016-Winning with NetApp in Digital Transformation Age,...
K5.Fujitsu World Tour 2016-Winning with NetApp in Digital Transformation Age,...
 
The Three Pillars of Agile Integration: Connector, Container & API
The Three Pillars of Agile Integration: Connector, Container & APIThe Three Pillars of Agile Integration: Connector, Container & API
The Three Pillars of Agile Integration: Connector, Container & API
 
Hitch-hikers guide to AI for Connected and Autonomous Vehicles
Hitch-hikers guide to AI for Connected and Autonomous VehiclesHitch-hikers guide to AI for Connected and Autonomous Vehicles
Hitch-hikers guide to AI for Connected and Autonomous Vehicles
 
Green the web
Green the webGreen the web
Green the web
 
Workshop About Software Engineering Skills 2019
Workshop About Software Engineering Skills 2019Workshop About Software Engineering Skills 2019
Workshop About Software Engineering Skills 2019
 

More from Chris Adams

2016 Nov - World Usability Day Prague - Planet Friendly Digital Design
2016 Nov - World Usability Day Prague - Planet Friendly Digital Design2016 Nov - World Usability Day Prague - Planet Friendly Digital Design
2016 Nov - World Usability Day Prague - Planet Friendly Digital DesignChris Adams
 
Amee product development workflow
Amee product development workflowAmee product development workflow
Amee product development workflowChris Adams
 
Amee product workflow - 2012.08.16
Amee product workflow - 2012.08.16Amee product workflow - 2012.08.16
Amee product workflow - 2012.08.16Chris Adams
 
Wp-LDN - monthly news roundup
Wp-LDN - monthly news roundupWp-LDN - monthly news roundup
Wp-LDN - monthly news roundupChris Adams
 
Getting to The Loop - London Wordpress Meetup July 28th
Getting to The Loop - London Wordpress Meetup  July 28thGetting to The Loop - London Wordpress Meetup  July 28th
Getting to The Loop - London Wordpress Meetup July 28thChris Adams
 
Carbage SiCamp June 09
Carbage SiCamp June 09Carbage SiCamp June 09
Carbage SiCamp June 09Chris Adams
 
Twitter - A beginner's guide
Twitter - A beginner's guideTwitter - A beginner's guide
Twitter - A beginner's guideChris Adams
 
Postal: SiCamp Nov 2008 Submission Presentation
Postal: SiCamp Nov 2008 Submission PresentationPostal: SiCamp Nov 2008 Submission Presentation
Postal: SiCamp Nov 2008 Submission PresentationChris Adams
 

More from Chris Adams (8)

2016 Nov - World Usability Day Prague - Planet Friendly Digital Design
2016 Nov - World Usability Day Prague - Planet Friendly Digital Design2016 Nov - World Usability Day Prague - Planet Friendly Digital Design
2016 Nov - World Usability Day Prague - Planet Friendly Digital Design
 
Amee product development workflow
Amee product development workflowAmee product development workflow
Amee product development workflow
 
Amee product workflow - 2012.08.16
Amee product workflow - 2012.08.16Amee product workflow - 2012.08.16
Amee product workflow - 2012.08.16
 
Wp-LDN - monthly news roundup
Wp-LDN - monthly news roundupWp-LDN - monthly news roundup
Wp-LDN - monthly news roundup
 
Getting to The Loop - London Wordpress Meetup July 28th
Getting to The Loop - London Wordpress Meetup  July 28thGetting to The Loop - London Wordpress Meetup  July 28th
Getting to The Loop - London Wordpress Meetup July 28th
 
Carbage SiCamp June 09
Carbage SiCamp June 09Carbage SiCamp June 09
Carbage SiCamp June 09
 
Twitter - A beginner's guide
Twitter - A beginner's guideTwitter - A beginner's guide
Twitter - A beginner's guide
 
Postal: SiCamp Nov 2008 Submission Presentation
Postal: SiCamp Nov 2008 Submission PresentationPostal: SiCamp Nov 2008 Submission Presentation
Postal: SiCamp Nov 2008 Submission Presentation
 

Recently uploaded

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Recently uploaded (20)

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 

Djangocon Europe 2017: Planet Friendly Django

  • 1. Planet friendly Web Development with Django Chris Adams Djangocon Europe 2017
  • 2. Chris Adams: @acdha Successful, prolific, well known django developer Chris Adams: @mrchrisadams Not this guy… This guy Environmentally focussed web generalist
  • 3. A.M.E.E. (Avoid Mass Extinction Engine) - CO2 calculation APIs Loco2 - Low CO2 travel in Europe by train TeaLight - Low CO2 cups of tea, with demand response My Background:
  • 4. Djangocon 2017 - Planet Friendly Web Development@mrchrisadams
  • 5. Djangocon 2017 - Planet Friendly Web Development@mrchrisadams@mrchrisadamsWhat can a technologist do about climate change: worrydream.com/climatechange
  • 6. Djangocon 2017 - Planet Friendly Web Development@mrchrisadams http://www.iea.org/media/news/2017/GlobalCarbonEmissions2.png http://www.iea.org/newsroom/news/2017/march/iea-finds-co2-emissions-flat-for-third-straight-year-even-as-global- economy-grew.html
  • 7. Djangocon 2017 - Planet Friendly Web Development@mrchrisadamshttp://folk.uio.no/roberan/t/global_mitigation_curves.shtml
  • 8. Djangocon 2017 - Planet Friendly Web Development@mrchrisadams@mrchrisadamsWorld GHG Emissions in 2010 - Analysis by ECOFYS Source* Greenhouse gas Coal 25% Natural Gas 19% Oil 21% Waste 0.4% Sector Direct emissions 34.6% * Greenhouse gases can arise from two sources N20 7% CH4 15% CO2 76% HFCs & PFCs 2% Transport 15% Residential Buildings 11% Commercial/Public Buildings & Services 7% Land Use Change 15% Industry 29% 7% 6.0% 4.8% 4.3% 1.4% 1.1% 1.0% 10.5% 1.5% 2.6% 10.5% 5.5% 1.4% 1.8% 3.1% 4.4% 10.3% Other industries Paper, pulp and printing Food and tobacco Non-ferrous metals Chemical and petrochemical Iron and steel Non-metallic minerals Aviation Others Road Livestock and manure Agricultural Energy Use Coal Mining Oil and gas extraction, refining and processing Deforestation/Afforestation and Land Use CO2 Agricultural soils 1.3% 1.6% Landfills Waste water & othersWaste 3% Agriculture Energy Supply 13% 8.3%Energy industry own use & losses
  • 9. Djangocon 2017 - Planet Friendly Web Development@mrchrisadams© 2011-2012 GreenTouch Consortium 2020 ICT Carbon Footprint 820m tons CO2 360m tons CO2 260m tons CO2 2007 Worldwide ICT
 carbon footprint:
 2% = 830 m tons CO2 Comparable to the
 global aviation 
 industry Expected to grow 
 to 4% by 2020 The Climate Group, GeSI Report “Smart 2020”, 2008 Full report - https://www.slideshare.net/greentouch-org/intro-to-green-touch
  • 10. Djangocon 2017 - Planet Friendly Web Development@mrchrisadams A mental model for thinking about this
  • 11. Djangocon 2017 - Planet Friendly Web Development@mrchrisadams Your Servers Your Packets Your Process
  • 13. Your servers Provider: Where did the power your servers run on come from?
  • 14. Power quote From 2017 report - http://www.greenpeace.org/usa/global-warming/click-clean/
  • 15. Your servers Provision: How many server resources do you use? And when?
  • 16. The power of wireless cloud 2013 (CEET - http://www.ceet.unimelb.edu.au/publications)
  • 17. “many workloads are spiky or drop to zero for extended periods… applications used in the workplace may only be active for 40 of the 168 hours in a week.” Adrian Cockroft @adrianco: AWS, ex Netflix @mrchrisadams https://medium.com/@adrianco/evolution-of-business-logic-from-monoliths-through-microservices-to-functions- ff464b95a44d#.4ap421dwr
  • 18. PaaS: Higher unit cost in exchange for easier scaling
  • 19. FaaS / Serverless: Even higher unit cost, to not think about scaling* * You still need to obviously, but differently
  • 20. “the technical capabilities of serverless might not be that exciting, but the financial side sure is… Strong financial incentives for good design practices, and clear financial penalties for bad design” Gojko Adzic @mrchrisadamshttps://gojko.net/2016/08/27/serverless.html
  • 21. When your second biggest cost after staff is data centres, you have a very good incentive to care about saving energy. @mrchrisadamshttps://deepmind.com/blog/deepmind-ai-reduces-google-data-centre-cooling-bill-40
  • 22. Platform as a Service (PaaS) Functions as a Service django-configurations Cloudfoundry: App Autoscaler zappa Heroku: Autoscaling & LightSwitch chalice In the Django toolbox
  • 25. “Wireless access network technologies account for 90% of total wireless cloud energy consumption. Data centres account for only about 9%. The energy consumption of wireless user devices is negligible.” The power of wireless cloud 2013 (CEET - http://www.ceet.unimelb.edu.au/publications)
  • 26. Power quote The power of wireless cloud 2013 (CEET - http://www.ceet.unimelb.edu.au/publications)
  • 29. Power quote https://speedcurve.com (see also sitespeed.io for an OSS take)
  • 30. Your packets Lossy changes: How much of what you send is used by the client?
  • 31. Your packets Lossless changes: How efficiently are the bits sent?
  • 32. Dynamic Static Media compression Django middleware & decorators Whitenoise, CDNs, Nginx CDNs, Nginx caching Django middleware & decorators Whitenoise, CDNs CDNs, Nginx JS optimisation Webpack 2, Google Closure Compiler (JS) nginx mod_pagespeed Image Optimisation ImageOptim, Trimage easy- thumbnails.optimise, nginx mod_pagespeed Relevant in the Django toolbox
  • 33. There’s much, much more to do, but starting here can help
  • 34. Thanks! I’m around all week, and in the slack channel to chat. Say hello :) Chris Adams @mrchrisadams productscience.co.uk https://www.slideshare.net/chris.d.adams
  • 35. Djangocon 2017 - Planet Friendly Web Development@mrchrisadams Bonus life-changing link: What can a technologist do about climate change? - Bret Viktor worrydream.com/climatechange