Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.39 KB

DE01_en.md

File metadata and controls

38 lines (24 loc) · 1.39 KB

Prefer smallest format for exchange (JSON instead of XML)

Identifiers

API Green Score V1 V2 V3
DE01 1

Categories

Lifecycle Resources Responsible
Design Network/Compute/Storage API Producer

Indications

Priority Level Implementation Difficulty Ecological Impact Level
tbd tbd tbd
Saving Resources
network / compute / storage

Description

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.

Example

TBD

Validation principle

true of false