mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 14:58:39 +00:00
25 lines
585 B
Markdown
25 lines
585 B
Markdown
---
|
|
title: Partial Response
|
|
category: Behavioral
|
|
language: en
|
|
tag:
|
|
- Decoupling
|
|
---
|
|
|
|
## 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.
|
|
|
|
## Class diagram
|
|

|
|
|
|
## Applicability
|
|
Use the Partial Response pattern when
|
|
|
|
* Client need only subset of data from resource.
|
|
* To avoid too much data transfer over wire
|
|
|
|
## Credits
|
|
|
|
* [Common Design Patterns](https://cloud.google.com/apis/design/design_patterns)
|