Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.69 KB

BP_4033_en.md

File metadata and controls

43 lines (28 loc) · 1.69 KB

Use "Request collapsing" as much as possible

Identifiers

GreenIT V2 V3 V4

Categories

Life cycle Tiers Responsible
2. Design Datacenter Software Architect/Developer

Indications

Priority Implementation difficulty Ecological impact
2 2 2
Saved resources
Network / Queries

Description

"Request collapsing" is an application pattern that limits the number of remote calls by grouping multiple requests into a single one. It is appropriate to retrieve data belonging to the same business domain through a third-party service.

It helps reduce:

  • network load,
  • high network latency impact,
  • per-request licensing costs

Example

Retrieving customers' orders from their client accounts requires information about the ordered product, the billing address and the payment status. It is better for the order management service to allow retrieving these three sets of data in a single call instead of sending three separate requests to the order management service.

Validation rule

The number of ... is equal to or less than
requests sent to retrieve data belonging to the same business domain through a third-party service 2