The Wayback Machine - https://web.archive.org/web/20200717132238/https://github.com/topics/rate-limiting
Skip to content
#

rate-limiting

Here are 259 public repositories matching this topic...

wensuliang
wensuliang commented Mar 19, 2020

多人同时操作流控规则查询和添加时有概率出现规则丢失的情况。配置中心Apollo
1.apiQueryMachineRules查询操作分为几步
a.从配置中心Apollo获取规则
b.清空内存中appRules等信息
c.循环保存规则信息至内存appRules
d.返回规则列表
2.apiAddFlowRule添加操作分为几步
e.保存app规则至内存appRules,若该app无配置,则新建
f.推送内存appRules等信息到配置中心Apollo

多人并发操作情况下,假如某app已存在规则_X_、Y,添加_Z_规则时,有人访问控制台查询规则列表,并至b处,
这时添加操作开始执行至 e 处读取无配置并新建往里面塞入_Z_。然后推送只有Z的列表到Apollo保存。
此时两个操作执行结束后,XY

A Guzzle middleware that can throttle requests according to (multiple) defined rules. It is also possible to define a caching strategy, e.g. get the response from cache when the rate limit is exceeded or always get a cached value to spare your rate limits. Using wildcards in host names is also supported.

  • Updated Mar 13, 2020
  • PHP

In this workshop, you'll learn how to install and configure Istio, an open source framework for connecting, securing, and managing microservices, on Google Kubernetes Engine, Google’s hosted Kubernetes product. You will also deploy an Istio-enabled multi-service application

  • Updated Mar 16, 2019
  • Dockerfile

Improve this page

Add a description, image, and links to the rate-limiting topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the rate-limiting topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.