Leon Mak c8a481bb77 Add java 11 support for #987 (o-t) (#1051)
* Use java 11

* Use .of
- Replace Arrays.asList with List.of
- Replace HashSet<>(List.of()) with Set.of

* Formatting
2019-10-29 08:37:40 +02:00
..
2017-11-28 20:55:52 +02:00
2019-10-12 20:05:54 +03:00

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern Partial Response partial-response /patterns/partial-response/ Architectural
Java
KISS
YAGNI
Difficulty-Beginner

Intent

Send partial response from server to client on need basis. Client will specify the the fields that it need to server, instead of serving all details for resource.

alt text

Applicability

Use the Partial Response pattern when

  • Client need only subset of data from resource.
  • To avoid too much data transfer over wire

Credits