Slide 1

Slide 1 text

Aavista Oy Merja Kajava APIDays Helsinki & North 2024 Sustainable IT and API Performance - How to Bring Them Together

Slide 2

Slide 2 text

Washington Post March 7, 2024 Goldman Sachs May 14, 2024

Slide 3

Slide 3 text

Demand for electricity in North America has doubled 9-year growth forecast of demand for new electricity, in gigawatt hours

Slide 4

Slide 4 text

Source: IEA (2024), Electricity 2024, IEA, Paris https://www.iea.org/reports/electricity-2024 “Electricity consumption from data centres, AI and the cryptocurrency sector could double by 2026” Data centres +29 TWh Increase Estimated drivers of change in electricity demand in the EU, 2021-2026

Slide 5

Slide 5 text

0,3 2,9 Google search ChatGPT request Energy consumption (Wh) ~10x Source: Alex de Vries (2023).The growing energy footprint of artificial intelligence. Joule, Volume 7, Issue 10, 2023 https://doi.org/10.1016/j.joule.2023.09.004 Substantial differences in energy consumption for search APIs

Slide 6

Slide 6 text

Source: Aavista City Countries with largest response times Differences in performance by API providers for the same API

Slide 7

Slide 7 text

The elements of API performance Scalability Performance Response times Request and/or response sizes Backend “efficiency” Network latency Throughput

Slide 8

Slide 8 text

API performance is shared between the API provider and the API consumer API Provider API Consumer Payload size Frequency

Slide 9

Slide 9 text

API Performance – The API Consumer API Provider API Consumer How many API requests ? What is the request size ? What is the response size ? Is paging used ? Is caching applied ?

Slide 10

Slide 10 text

API Performance – The Network API Provider API Consumer What is the network capacity ? What is the latency ? End-user

Slide 11

Slide 11 text

API Performance – The API Provider API Provider API Consumer 3rd Party API How many API requests to private APIs ? How many API requests to 3rd party APIs ? Is caching applied ?

Slide 12

Slide 12 text

API Performance – The Scalability API Provider API Consumer How many API consumers ? How many concurrent requests ? What is the frequency of the requests ?

Slide 13

Slide 13 text

API backend efficiency is built from the design Architecture API design Technology choices Calls to other APIs

Slide 14

Slide 14 text

SPECIFY PERFORMANCE REQUIREMENTS TEST PERFORMANCE MONITOR PERFORMANCE ADJUST Monitoring the API performance is an on-going activity

Slide 15

Slide 15 text

What about the carbon footprint for APIs

Slide 16

Slide 16 text

Carbon footprint calculators as part of the cloud billing Google Cloud - Carbon Footprint AWS - Customer Carbon Footprint Tool Note the scopes Scope 1 Scope 2 Scope 3

Slide 17

Slide 17 text

Carbon footprint calculators for multi-cloud environments Cloud Carbon Footprint https://www.cloudcarbonfootprint.org Azure AWS Google Cloud

Slide 18

Slide 18 text

A sustainable API solution = A well-performing API + Responsible use of the API

Slide 19

Slide 19 text

The Data Refinery Company Merja Kajava https://www.linkedin.com/in/merjakajava