JavaScript Saves The World - DotJS 2019

Bbc0c41f72dffc7701986e7ef58e3bbe?s=47 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

Bbc0c41f72dffc7701986e7ef58e3bbe?s=128

Asim Hussain

December 06, 2019
Tweet

Transcript

  1. 7.
  2. 11.

    On average 80% of the worlds electricity is created from

    the burning of Fossil Fuels @jawache
  3. 14.
  4. 17.

    @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
  5. 18.

    @jawache (Assuming a 4 year lifespan) 320 kg CO2e to

    create/year server "carbon" cost
  6. 22.

    • Autoscales • Pay as you go • Unit of

    measurement is not servers what is serverless? @jawache
  7. 25.

    • 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
  8. 28.
  9. 36.

    • Servers release CO2e • Serverless is more efficient, less

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