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

JavaScript Saves The World - DotJS 2019

Asim Hussain
December 06, 2019

JavaScript Saves The World - DotJS 2019

Data Centres produce about 3% of the worlds greenhouse gases and this is set to treble in the next 10 years. When building apps, we focus on minimising costs, time to market, bugs, bundle size, application speed, SEO, but we spend almost no effort trying to minimise the damage our applications are making to the environment. In this talk, we'll discuss how to build a green sustainable web application with NestJS and Serverless.

Links:
NestJS on Azure Serverless Functions: https://nitr.ooo
NestJS on Google Cloud Functions: https://fireship.io/snippets/setup-nestjs-on-cloud-functions/
NestJS on AWS Lambda: https://keyholesoftware.com/2019/05/13/aws-lambda-with-nestjs/
Climate Action Community: climateaction.tech

Asim Hussain

December 06, 2019
Tweet

More Decks by Asim Hussain

Other Decks in Technology

Transcript

  1. On average 80% of the worlds electricity is created from

    the burning of Fossil Fuels @jawache
  2. @jawache ~600 kg CO2e to run/year Idle servers consume ~25%

    of the electricity compared to peak load ~150 kg CO2e to run/year server "carbon" cost
  3. @jawache (Assuming a 4 year lifespan) 320 kg CO2e to

    create/year server "carbon" cost
  4. • Autoscales • Pay as you go • Unit of

    measurement is not servers what is serverless? @jawache
  5. • CO2e was released to create a server • CO2e

    was released to power a server • If you don't run at 100% utilisation you are wasting CO2e • Serverless let's us run servers at 100% serverless is greener because? @jawache
  6. • Servers release CO2e • Serverless is more efficient, less

    waste. • Serverless with Nest.js on Azure (nitr.ooo) • Clean Energy • climateaction.tech Summary @jawache