SlideShare a Scribd company logo
1 of 35
Download to read offline
Sustainable API
‘API Numériquement Responsable’
‘Digital API Responsability’
2
2
Present in nearly
120 countries
4 BUSINESS SECTORS
COSMETICS
CLOTHING
HOME CARE
WELL-BEING
Yannick Tremblais
IT Innovation Manager
Groupe Rocher
3
In 2019 Groupe Rocher adopt the status of “mission-driven company” .
Our mission:
RECONNECT PEOPLE
TO NATURE
Green IT Eco-design
of IS
Responsible
IT usages
IT for Green
2030 GRTS IT RESPONSIBILITY AMBITIONS
4
5
We are sharing our studies to external communities
As we are pioneers on API Ecodesign
As environmental impact is a shared concern
As guideline and calculation rule must be
shared and validated by many to be
recognized
External Communities
Active Member of the API Thinking Community
head of workgroup “Sustainable digital API”
A collective that draws its strength from its members
Since 2020, the 1st French collective dedicated to APIS
Free Network Diversity
6
Digital Sustainability
https://en.arcep.fr/uploads/tx_gspublication/press-kit-study-Ademe-Arcep-lot3_march2023.pdf
7
Without action to limit the growth of the environmental impact
of digital technology, its carbon footprint could triple between
2020 and 2050 ADEME-Arcep working group document listing potential game-changers in the digital sector
8
The API Green Score is a toolkit to help API users, designers and owners to ask themselves
questions about the digital impact of their API
This tool is based on 7 different domains in order to create relevant and realistic metrics that
stakeholders can use.
The evaluation method is shared with all API Persona
(API owners, API consumers, API developers)
Excellent Acceptable Average Poor Very Poor
A B C D E
API Green Score
9
• Decommission an unused API
• Deploy API near consumer
• Reduce number of API versions
• Unify API catalog
• Create consumer referential
• Identify API for single usage
• Urbanization with Data Governance
• Exchange with Smallest Size
• Following API payload size
• Prefer Opaque Token to JWT
• API Customer Centricity principles
• API Data / Granularity
• Leverage Odata or GraphQL for DB
APIs
• Data Management
• Dynamic Content
• Optimize queries to limit returned
information
• Collect only required data
• Provide only changed data
• Use cache
• Communicate on Payload size
• API used geolocally close to their
consumers
• Promote event architecture
• Filter data in payload
• Pagination
• Webhook or Business Notification
• AsyncAPI
• Define a basis of criteria for rating
• Provide KPIs (Nb of call, payload
size, nb of equipments used, …)
• Evaluate energy consumption for
one API
• Know language impact for energy
consumption
• Use adaptive infrastructure
• Use as few cloud suppliers as
possible between consumer and
backend
• Be near Data Center
• Define which actions are more
relevant to do to reduce the impact
of API ?
• Name of API Ecoscore
• Guideline resources
• Sharing criteria of evaluation and
methods
• Adapt the communication of each
personas
API Lifecycle Data Exchange Data Architecture
Tools Infrastructure Communication
7 Domains
10
API Lifecyle Domain
Impact EcoScore
API Lifecycle
API uses: (who, when, what)
Description Governance
Tools to measure
KPI per API
Example
Have a consumer referential
What is the impact of this referential
on the API Green Score?
Who consumes my API?
What: Which version of API?
When: Which number of asked calls
vs number of calls ? Date of last call?
What is the calls volume ?
API Product Owner
Center of Expertise API
Logs API / Operational Reporting
Analytics API Gateway
To influence the Metrics
API Gateway/API Portal
Nb of call per consumer
Nb of consumers per API
Nb of versions per API (US03)
Location of consumers
Documentation quality (US06)
What is the API Footprint?
API Order 10000/ call / month
API last Call
Nb of Consumers who used this API
20%
11
Data Exchange Domain
Data Exchange
API uses: How to exchange information between information systems
Description Governance
Tools to measure
KPI per API
Examples
Impact EcoScore
Make sure APIs are eco
designed
How we exchange data,
Payload size
Message type / integration
pattern type
Call frequency / cache
API Product Owner
API developer
Application Owner
Api gateway / API portal
E2E observability
Nb of calls per consumer
Calls volume
API Payload average size (DE11)
Integration Layer Payload
Integration pattern
Cache performance (DE01, DE02, DE03)
Filtering data for calling backend
Orchestration
Consume only relevant data
20%
12
Data Domain
Description
Impact EcoScore
Data
API uses: Govern Business Object (naming convention, modelization, pivot format)
Governance
Tools to measure
KPI per API
Example
Understand the use case and
type of data implicated
Business object
Expose only needed data
Data should only be stored in a
single point of truth
Data should be stored in an
unique and secured point
Data Product Owner
Application Owner
Data Catalog
DataPedia, DataService
Cache management (DE03)
Payload average size
Data format (JSon/XML) (DE01)
Compressed Payload usage
Shared business objects depending on
usage
Avoid duplicated data
20%
13
To simplify your task and assist you in directing your efforts effectively, we have
established categories:
Categories are used to adjust the weighting of rules.
Depending on your organization, you can have a better impact on some categories.
Archi Design Usage Logs
4 categories
14
Archi Design Usage Logs
API Lifecycle Data Exchange Data Architecture
Tools Infrastructure Communication
4 Categories
7 Domains
Domains vs Categories
15
We have 2 ways to evaluate:
• Boolean: true/false
• Rate: calculation should be shared with persona, to avoid any misunderstanding
If some rules are not relevant - ex GraphQL (DE09), you can remove them from your
referential and adapt with your own weighting
If some rules are not explicit enough, it is important to share them with all personas
Evaluation Grid: Some precisions before starting
Archi Design Usage Logs
Rule
AR01
…
Rule
ARxx
Rule
DE01
… Rule DExx Rule
US01
…
Rule
USxx
Rule
LO01
…
Rule
LOxx
4 Categories
Usage (US): 25 %
Each category are rules based on 7 domains
(Architecture, Data, API Lifecycle, Data Exchange, Tools,
Infrastructure, Communication)
Logs (LO): 10%
Design (DE): 40%
Architecture (AR): 25%
Each rule (US01, LO01, LO02…) has a score and
its category has a weighting
16
Evaluation Grid: Results
Excellent Acceptable Average Poor Very Poor Not evaluted
A B C D E N.C
>=6000 6000<>=3000 3000<>=2000 2000<>=1000 <1000
17
AR05: Carbon Footprint Dashboard
Some cloud providers produce carbon footprint dashboard.
You can implement your own or adapt it based on your infrastructure and be close to your usage.
Ex: evaluation the impact of compute, network, disk and divided by the number of calls of the evaluate
API.
Expected gain: Network, compute
network compute Storage
Architecture
18
19
20
DE01: Prefer an exchange format with the smallest size (JSON is smaller than XML).
One of the structuring questions when designing an API is the selection of the exchange format to use. If the choice is often made
by technical constraints or personal affinities, the durability aspect is also to be taken into account.
Indeed, there are exchange formats that are heavier than others. For example, JSON is smaller than XML. The second format will
therefore have a stronger impact on the network, the computing and the storage.
In the interest of sustainability, we recommend to use a lighter exchange format to reduce the bandwidth consumed for the
requests, the compute and storage resources consumption used to process and store the payloads.
Expected gain: Network, compute and storage impact reduced
network compute storage
Data Exchange
21
xml json Gain
717 B 623 B 94 B (-13%)
nb call /day 2 000 000 1,33 GB 1,16 GB 0,17 GB
nb call/month
(30)
60 000 000 40,06 GB 34.81 GB 5,25 GB
<?xml version="1.0" encoding="UTF-8"?>
<Catalog>
<Book id="bk101">
<Author>Garghentini, Davide</Author>
<Title>XML Developer's Guide</Title>
<Genre>Computer</Genre>
<Price>44.95</Price>
<PublishDate>2000-10-01</PublishDate>
<Description>An in-depth look at creating applications
with XML.</Description>
</Book>
<Book id="bk102">
<Author>Garcia, Debra</Author>
<Title>Midnight Rain</Title>
<Genre>Fantasy</Genre>
<Price>5.95</Price>
<PublishDate>2000-12-16</PublishDate>
<Description>A former architect battles corporate zombies,
an evil sorceress, and her own childhood to become queen
of the world.</Description>
</Book>
</Catalog>
{
"Catalog": {
"Book": [
{
"Author": "Garghentini, Davide",
"Title": "XML Developer's Guide",
"Genre": "Computer",
"Price": "44.95",
"PublishDate": "2000-10-01",
"Description": "An in-depth look at creating applicationsn
with XML.",
"_id": "bk101"
},
{
"Author": "Garcia, Debra",
"Title": "Midnight Rain",
"Genre": "Fantasy",
"Price": "5.95",
"PublishDate": "2000-12-16",
"Description": "A former architect battles corporate zombies,n
an evil sorceress, and her own childhood to become queenn of the world.",
"_id": "bk102"
}
]
}
}
717 bytes bookstore.xml 623 bytes bookstore.json
22
DE02/DE03/DE05: Use cache to avoid useless requests and preserve compute resources.
The use of a cache has become common in computer architectures to store frequently used information on a fast
storage.
In addition to improving the response time of APIs, and therefore the consumer's experience of the service, it also
saves computational resources by avoiding executing the same query on the same data multiple times.
It is recommended to place a cache in front of each brick of an architecture returning data (API, database, frontend
application, ...) and close to the users to preserve compute resources and improve performances of the API.
Expected gain: Compute resources saved & Network impact reduced
network compute storage
Data Data Exchange
23
24
US01 : Use query parameters for GET Methods
Optimize queries to limit the information returned to what is strictly necessary.
It is often observed that requests made on APIs are not precise enough, which returns a volume of information greater than necessary.
This results in increased bandwidth consumption during exchanges.
The best practice is to create precise requests that return, as much as possible, the strictly necessary information, thus avoiding the
transfer of useless information.
This rule is linked to DE08 : “Implement filters to limit which fields are returned by the API ”
Expected gain: Network, compute
network compute storage
Data Exchange
25
https://api-adresse.data.gouv.fr/search
curl "https://api-adresse.data.gouv.fr/search/?q=10+av"
https://api-adresse.data.gouv.fr/search/?q=10+av&limit=100
https://api-adresse.data.gouv.fr/search/?q=10+av
5 results
Payload : 2,57 KB
100 results
Payload 42,9 KB
https://api-adresse.data.gouv.fr/search/?q=10+av&limit=1000
26
curl l"https://api.spotify.com/v1/browse/categories"
https://api.spotify.com/v1/browse/categories?offset=30
&limit=50
https://api.spotify.com/v1/browse/categories?offset=0
&limit=50
48 results
Payload : 16,37 KB
18 results
Payload 6,81 KB
27
LO01: Collect only required data and use the right retention time according to the business requirements.
It is quite common for applications to store a large amount of useless information without time limit.
This results in an excessive consumption of storage services for data that will not be used or no longer used.
It is necessary to clean up the data in order to keep only the data that is useful and to define a coherent retention
policy in order to delete them once their validity or exploitation period has passed.
Expected gain: Volume of data stored reduced & Network impact reduced
network compute storage
Tools
28
https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-overview.html
detail by each API call
detail by each hour call
keep details by brand/country/method
aggregate : Average(Response Time), sum (nb of
call) by hour
automatic rollup process
to reduce granularity
Major Impact: save disk space
29
• Define log retention per services/domain
• Define log rotation (rollup)
• Keep unit date for 45 days, and aggregate them(mn/hour)
➔ Reduce size of Elastic indices to 4Go /month
30
https://institutnr.org/guide-de-reference-de-conception-responsable
Institut du Numérique Responsable
Institute of Digital Responsability
https://gr491.isit-europe.org/en
31
https://greensoftware.foundation
https://patterns.greensoftware.foundation
Green Software Foundation
32
https://collectif.greenit.fr/
Collectif Numérique Responsable (CNUMR)
https://github.com/cnumr
33
https://www.ecocode.io/
EcoCode
https://github.com/green-code-initiative
34
https://www.collectif-api-thinking.com
This is the beginning of our journey; we need you to contribute!
"Transform your API strategy with the industry's leading
practices for environmental sustainability.”

More Related Content

Similar to INTERFACE by apidays 2023 - API Green Score, Yannick Tremblais, Groupe Rocher

Enabling digital transformation api ecosystems and data virtualization
Enabling digital transformation   api ecosystems and data virtualizationEnabling digital transformation   api ecosystems and data virtualization
Enabling digital transformation api ecosystems and data virtualization
Denodo
 
Introduction to Cloud Service Design
Introduction to Cloud Service DesignIntroduction to Cloud Service Design
Introduction to Cloud Service Design
evancmiller
 
Using Oracle SOA Suite 11g to Integrate with PeopleSoft 9.1
Using Oracle SOA Suite 11g to Integrate with PeopleSoft 9.1Using Oracle SOA Suite 11g to Integrate with PeopleSoft 9.1
Using Oracle SOA Suite 11g to Integrate with PeopleSoft 9.1
Brad Bukacek Jr.
 

Similar to INTERFACE by apidays 2023 - API Green Score, Yannick Tremblais, Groupe Rocher (20)

Enabling digital transformation api ecosystems and data virtualization
Enabling digital transformation   api ecosystems and data virtualizationEnabling digital transformation   api ecosystems and data virtualization
Enabling digital transformation api ecosystems and data virtualization
 
Replacing Oracle with EDB Postgres
Replacing Oracle with EDB PostgresReplacing Oracle with EDB Postgres
Replacing Oracle with EDB Postgres
 
Cloud Modernization and Data as a Service Option
Cloud Modernization and Data as a Service OptionCloud Modernization and Data as a Service Option
Cloud Modernization and Data as a Service Option
 
Understanding the TCO and ROI of Apache Kafka & Confluent
Understanding the TCO and ROI of Apache Kafka & ConfluentUnderstanding the TCO and ROI of Apache Kafka & Confluent
Understanding the TCO and ROI of Apache Kafka & Confluent
 
AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...
AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...
AWS Public Sector Symposium 2014 Canberra | Putting the "Crowd" to work in th...
 
Denodo Platform 7.0: What's New?
Denodo Platform 7.0: What's New?Denodo Platform 7.0: What's New?
Denodo Platform 7.0: What's New?
 
High-performance database technology for rock-solid IoT solutions
High-performance database technology for rock-solid IoT solutionsHigh-performance database technology for rock-solid IoT solutions
High-performance database technology for rock-solid IoT solutions
 
EDB & ELOS Technologies - Break Free from Oracle
EDB & ELOS Technologies - Break Free from OracleEDB & ELOS Technologies - Break Free from Oracle
EDB & ELOS Technologies - Break Free from Oracle
 
Cloud Modernization and Data as a Service Option
Cloud Modernization and Data as a Service OptionCloud Modernization and Data as a Service Option
Cloud Modernization and Data as a Service Option
 
Goldark Presentation at Qualcomm QPrize 2014
Goldark Presentation at Qualcomm QPrize 2014Goldark Presentation at Qualcomm QPrize 2014
Goldark Presentation at Qualcomm QPrize 2014
 
Analyst View of Data Virtualization: Conversations with Boulder Business Inte...
Analyst View of Data Virtualization: Conversations with Boulder Business Inte...Analyst View of Data Virtualization: Conversations with Boulder Business Inte...
Analyst View of Data Virtualization: Conversations with Boulder Business Inte...
 
Paris FOD Meetup #5 Cognizant Presentation
Paris FOD Meetup #5 Cognizant PresentationParis FOD Meetup #5 Cognizant Presentation
Paris FOD Meetup #5 Cognizant Presentation
 
Windows Azure Platform - Jonathan Wong
Windows Azure Platform - Jonathan WongWindows Azure Platform - Jonathan Wong
Windows Azure Platform - Jonathan Wong
 
Cloud infrastructure and Cloud Services
Cloud infrastructure and Cloud ServicesCloud infrastructure and Cloud Services
Cloud infrastructure and Cloud Services
 
Dataweek-Talk-2014
Dataweek-Talk-2014Dataweek-Talk-2014
Dataweek-Talk-2014
 
Introduction to Cloud Service Design
Introduction to Cloud Service DesignIntroduction to Cloud Service Design
Introduction to Cloud Service Design
 
MongoDB Days Silicon Valley: Jumpstart: The Right and Wrong Use Cases for Mon...
MongoDB Days Silicon Valley: Jumpstart: The Right and Wrong Use Cases for Mon...MongoDB Days Silicon Valley: Jumpstart: The Right and Wrong Use Cases for Mon...
MongoDB Days Silicon Valley: Jumpstart: The Right and Wrong Use Cases for Mon...
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
Using Oracle SOA Suite 11g to Integrate with PeopleSoft 9.1
Using Oracle SOA Suite 11g to Integrate with PeopleSoft 9.1Using Oracle SOA Suite 11g to Integrate with PeopleSoft 9.1
Using Oracle SOA Suite 11g to Integrate with PeopleSoft 9.1
 
Enterprise & Media Storage in the Cloud
Enterprise & Media Storage in the CloudEnterprise & Media Storage in the Cloud
Enterprise & Media Storage in the Cloud
 

More from apidays

More from apidays (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...
Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...
Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...
Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...
Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...
 
Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...
Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...
Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...
 
Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...
Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...
Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...
 
Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...
Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...
Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...
 
Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...
Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...
Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...
 
Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...
Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...
Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...
 
Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...
Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...
Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...
 
Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...
Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...
Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...
Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...
Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...
 
Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...
Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...
Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...
Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...
Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...
 

Recently uploaded

Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
JohnnyPlasten
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...
shambhavirathore45
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
shivangimorya083
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 

Recently uploaded (20)

(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 

INTERFACE by apidays 2023 - API Green Score, Yannick Tremblais, Groupe Rocher

  • 1. Sustainable API ‘API Numériquement Responsable’ ‘Digital API Responsability’
  • 2.
  • 3. 2 2 Present in nearly 120 countries 4 BUSINESS SECTORS COSMETICS CLOTHING HOME CARE WELL-BEING Yannick Tremblais IT Innovation Manager Groupe Rocher
  • 4. 3 In 2019 Groupe Rocher adopt the status of “mission-driven company” . Our mission: RECONNECT PEOPLE TO NATURE Green IT Eco-design of IS Responsible IT usages IT for Green 2030 GRTS IT RESPONSIBILITY AMBITIONS
  • 5. 4
  • 6. 5 We are sharing our studies to external communities As we are pioneers on API Ecodesign As environmental impact is a shared concern As guideline and calculation rule must be shared and validated by many to be recognized External Communities Active Member of the API Thinking Community head of workgroup “Sustainable digital API” A collective that draws its strength from its members Since 2020, the 1st French collective dedicated to APIS Free Network Diversity
  • 8. 7 Without action to limit the growth of the environmental impact of digital technology, its carbon footprint could triple between 2020 and 2050 ADEME-Arcep working group document listing potential game-changers in the digital sector
  • 9. 8 The API Green Score is a toolkit to help API users, designers and owners to ask themselves questions about the digital impact of their API This tool is based on 7 different domains in order to create relevant and realistic metrics that stakeholders can use. The evaluation method is shared with all API Persona (API owners, API consumers, API developers) Excellent Acceptable Average Poor Very Poor A B C D E API Green Score
  • 10. 9 • Decommission an unused API • Deploy API near consumer • Reduce number of API versions • Unify API catalog • Create consumer referential • Identify API for single usage • Urbanization with Data Governance • Exchange with Smallest Size • Following API payload size • Prefer Opaque Token to JWT • API Customer Centricity principles • API Data / Granularity • Leverage Odata or GraphQL for DB APIs • Data Management • Dynamic Content • Optimize queries to limit returned information • Collect only required data • Provide only changed data • Use cache • Communicate on Payload size • API used geolocally close to their consumers • Promote event architecture • Filter data in payload • Pagination • Webhook or Business Notification • AsyncAPI • Define a basis of criteria for rating • Provide KPIs (Nb of call, payload size, nb of equipments used, …) • Evaluate energy consumption for one API • Know language impact for energy consumption • Use adaptive infrastructure • Use as few cloud suppliers as possible between consumer and backend • Be near Data Center • Define which actions are more relevant to do to reduce the impact of API ? • Name of API Ecoscore • Guideline resources • Sharing criteria of evaluation and methods • Adapt the communication of each personas API Lifecycle Data Exchange Data Architecture Tools Infrastructure Communication 7 Domains
  • 11. 10 API Lifecyle Domain Impact EcoScore API Lifecycle API uses: (who, when, what) Description Governance Tools to measure KPI per API Example Have a consumer referential What is the impact of this referential on the API Green Score? Who consumes my API? What: Which version of API? When: Which number of asked calls vs number of calls ? Date of last call? What is the calls volume ? API Product Owner Center of Expertise API Logs API / Operational Reporting Analytics API Gateway To influence the Metrics API Gateway/API Portal Nb of call per consumer Nb of consumers per API Nb of versions per API (US03) Location of consumers Documentation quality (US06) What is the API Footprint? API Order 10000/ call / month API last Call Nb of Consumers who used this API 20%
  • 12. 11 Data Exchange Domain Data Exchange API uses: How to exchange information between information systems Description Governance Tools to measure KPI per API Examples Impact EcoScore Make sure APIs are eco designed How we exchange data, Payload size Message type / integration pattern type Call frequency / cache API Product Owner API developer Application Owner Api gateway / API portal E2E observability Nb of calls per consumer Calls volume API Payload average size (DE11) Integration Layer Payload Integration pattern Cache performance (DE01, DE02, DE03) Filtering data for calling backend Orchestration Consume only relevant data 20%
  • 13. 12 Data Domain Description Impact EcoScore Data API uses: Govern Business Object (naming convention, modelization, pivot format) Governance Tools to measure KPI per API Example Understand the use case and type of data implicated Business object Expose only needed data Data should only be stored in a single point of truth Data should be stored in an unique and secured point Data Product Owner Application Owner Data Catalog DataPedia, DataService Cache management (DE03) Payload average size Data format (JSon/XML) (DE01) Compressed Payload usage Shared business objects depending on usage Avoid duplicated data 20%
  • 14. 13 To simplify your task and assist you in directing your efforts effectively, we have established categories: Categories are used to adjust the weighting of rules. Depending on your organization, you can have a better impact on some categories. Archi Design Usage Logs 4 categories
  • 15. 14 Archi Design Usage Logs API Lifecycle Data Exchange Data Architecture Tools Infrastructure Communication 4 Categories 7 Domains Domains vs Categories
  • 16. 15 We have 2 ways to evaluate: • Boolean: true/false • Rate: calculation should be shared with persona, to avoid any misunderstanding If some rules are not relevant - ex GraphQL (DE09), you can remove them from your referential and adapt with your own weighting If some rules are not explicit enough, it is important to share them with all personas Evaluation Grid: Some precisions before starting Archi Design Usage Logs Rule AR01 … Rule ARxx Rule DE01 … Rule DExx Rule US01 … Rule USxx Rule LO01 … Rule LOxx 4 Categories Usage (US): 25 % Each category are rules based on 7 domains (Architecture, Data, API Lifecycle, Data Exchange, Tools, Infrastructure, Communication) Logs (LO): 10% Design (DE): 40% Architecture (AR): 25% Each rule (US01, LO01, LO02…) has a score and its category has a weighting
  • 17. 16 Evaluation Grid: Results Excellent Acceptable Average Poor Very Poor Not evaluted A B C D E N.C >=6000 6000<>=3000 3000<>=2000 2000<>=1000 <1000
  • 18. 17 AR05: Carbon Footprint Dashboard Some cloud providers produce carbon footprint dashboard. You can implement your own or adapt it based on your infrastructure and be close to your usage. Ex: evaluation the impact of compute, network, disk and divided by the number of calls of the evaluate API. Expected gain: Network, compute network compute Storage Architecture
  • 19. 18
  • 20. 19
  • 21. 20 DE01: Prefer an exchange format with the smallest size (JSON is smaller than XML). One of the structuring questions when designing an API is the selection of the exchange format to use. If the choice is often made by technical constraints or personal affinities, the durability aspect is also to be taken into account. Indeed, there are exchange formats that are heavier than others. For example, JSON is smaller than XML. The second format will therefore have a stronger impact on the network, the computing and the storage. In the interest of sustainability, we recommend to use a lighter exchange format to reduce the bandwidth consumed for the requests, the compute and storage resources consumption used to process and store the payloads. Expected gain: Network, compute and storage impact reduced network compute storage Data Exchange
  • 22. 21 xml json Gain 717 B 623 B 94 B (-13%) nb call /day 2 000 000 1,33 GB 1,16 GB 0,17 GB nb call/month (30) 60 000 000 40,06 GB 34.81 GB 5,25 GB <?xml version="1.0" encoding="UTF-8"?> <Catalog> <Book id="bk101"> <Author>Garghentini, Davide</Author> <Title>XML Developer's Guide</Title> <Genre>Computer</Genre> <Price>44.95</Price> <PublishDate>2000-10-01</PublishDate> <Description>An in-depth look at creating applications with XML.</Description> </Book> <Book id="bk102"> <Author>Garcia, Debra</Author> <Title>Midnight Rain</Title> <Genre>Fantasy</Genre> <Price>5.95</Price> <PublishDate>2000-12-16</PublishDate> <Description>A former architect battles corporate zombies, an evil sorceress, and her own childhood to become queen of the world.</Description> </Book> </Catalog> { "Catalog": { "Book": [ { "Author": "Garghentini, Davide", "Title": "XML Developer's Guide", "Genre": "Computer", "Price": "44.95", "PublishDate": "2000-10-01", "Description": "An in-depth look at creating applicationsn with XML.", "_id": "bk101" }, { "Author": "Garcia, Debra", "Title": "Midnight Rain", "Genre": "Fantasy", "Price": "5.95", "PublishDate": "2000-12-16", "Description": "A former architect battles corporate zombies,n an evil sorceress, and her own childhood to become queenn of the world.", "_id": "bk102" } ] } } 717 bytes bookstore.xml 623 bytes bookstore.json
  • 23. 22 DE02/DE03/DE05: Use cache to avoid useless requests and preserve compute resources. The use of a cache has become common in computer architectures to store frequently used information on a fast storage. In addition to improving the response time of APIs, and therefore the consumer's experience of the service, it also saves computational resources by avoiding executing the same query on the same data multiple times. It is recommended to place a cache in front of each brick of an architecture returning data (API, database, frontend application, ...) and close to the users to preserve compute resources and improve performances of the API. Expected gain: Compute resources saved & Network impact reduced network compute storage Data Data Exchange
  • 24. 23
  • 25. 24 US01 : Use query parameters for GET Methods Optimize queries to limit the information returned to what is strictly necessary. It is often observed that requests made on APIs are not precise enough, which returns a volume of information greater than necessary. This results in increased bandwidth consumption during exchanges. The best practice is to create precise requests that return, as much as possible, the strictly necessary information, thus avoiding the transfer of useless information. This rule is linked to DE08 : “Implement filters to limit which fields are returned by the API ” Expected gain: Network, compute network compute storage Data Exchange
  • 28. 27 LO01: Collect only required data and use the right retention time according to the business requirements. It is quite common for applications to store a large amount of useless information without time limit. This results in an excessive consumption of storage services for data that will not be used or no longer used. It is necessary to clean up the data in order to keep only the data that is useful and to define a coherent retention policy in order to delete them once their validity or exploitation period has passed. Expected gain: Volume of data stored reduced & Network impact reduced network compute storage Tools
  • 29. 28 https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-overview.html detail by each API call detail by each hour call keep details by brand/country/method aggregate : Average(Response Time), sum (nb of call) by hour automatic rollup process to reduce granularity Major Impact: save disk space
  • 30. 29 • Define log retention per services/domain • Define log rotation (rollup) • Keep unit date for 45 days, and aggregate them(mn/hour) ➔ Reduce size of Elastic indices to 4Go /month
  • 31. 30 https://institutnr.org/guide-de-reference-de-conception-responsable Institut du Numérique Responsable Institute of Digital Responsability https://gr491.isit-europe.org/en
  • 35. 34 https://www.collectif-api-thinking.com This is the beginning of our journey; we need you to contribute! "Transform your API strategy with the industry's leading practices for environmental sustainability.”