官术网_书友最值得收藏!

Throttling for your client

Microservices that are well designed are highly scalable, but it does mean having infinite resources. With cloud-computer-limited resources, it is very relative, but the cost to provide a service can become so high that it prevents the same.

Thinking about it, some steps can be taken to reduce the cost of consumption. One, as mentioned earlier, is the implementation of an efficient cache. However, that's not all; at times, throttling is necessary to block the high consumption of resources.

It is not feasible that a client of a microservice as a web page runs a very high number of requests for the microservice, or that the same page is not mature enough to handle data already received.

For this, simple throttling that keeps the reference of who consumes the information and the data transferred to the client is very effective for reducing the consumption of microservices.

Some throttling policies can be applied:

  • Number of requests per minute from the same client
  • Number of requests per second from the same client
  • Number of requests per minute from the same client for similar information
  • Number of requests per second for the same client for the same information

With these, it is possible to limit such potential blunders as inadequate data manipulation, irresponsible Ajax requests, and less sophisticated attack attempts.

主站蜘蛛池模板: 鄂托克旗| 乌拉特后旗| 奉贤区| 奇台县| 子长县| 黄浦区| 江陵县| 临邑县| 怀远县| 八宿县| 儋州市| 花垣县| 湘乡市| 东城区| 湘乡市| 北碚区| 芦山县| 兴城市| 井冈山市| 武川县| 都江堰市| 陵水| 灵丘县| 泌阳县| 荥阳市| 全南县| 凯里市| 开封市| 博湖县| 平谷区| 康平县| 彭州市| 大姚县| 炎陵县| 张家口市| 平山县| 玛多县| 滦南县| 克拉玛依市| 云浮市| 微博|