22 lines
637 B
Markdown
Raw Permalink Normal View History

2017-09-07 12:54:19 +02:00
---
layout: pattern
2017-09-13 08:22:29 +03:00
title: Throttling
2017-09-07 12:54:19 +02:00
folder: throttling
permalink: /patterns/throttling/
2017-09-13 20:39:31 +03:00
categories: Behavioral
2017-09-07 12:54:19 +02:00
tags:
- Performance
2017-09-07 12:54:19 +02:00
---
2017-09-07 15:27:18 +02:00
## Intent
Ensure that a given client is not able to access service resources more than the assigned limit.
2017-09-07 15:27:18 +02:00
## Class diagram
![alt text](./etc/throttling-pattern.png "Throttling pattern class diagram")
2017-09-07 12:54:19 +02:00
## Applicability
The Throttling pattern should be used:
* When a service access needs to be restricted to not have high impacts on the performance of the service.
* When multiple clients are consuming the same service resources and restriction has to be made according to the usage per client.