28 lines
668 B
Markdown
Raw Permalink Normal View History

2017-09-14 23:07:40 +05:30
---
layout: pattern
title: Partial Response
folder: partial-response
permalink: /patterns/partial-response/
categories: Behavioral
language: en
2017-09-14 23:07:40 +05:30
tags:
- Decoupling
2017-09-14 23:07:40 +05:30
---
## 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
2017-09-14 23:07:40 +05:30
![alt text](./etc/partial-response.urm.png "partial-response")
## 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)