ratelimit-service:简单的限速路由服务

时间:2021-05-20 21:48:18
【文件属性】:
文件名称:ratelimit-service:简单的限速路由服务
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-20 21:48:18
Go 限速航线 关于 用于Cloud Foundry的简单的内存中限速路由服务。 此速率限制器路由服务应用程序是一个转发代理,它将限制每个客户端IP地址的请求数/秒。 例如,每个客户端每秒最多10个请求。 如果您想了解有关Cloud Foundry中的Route Services的更多信息,请参考 。 注意:这仅是示例,不能用于生产,但使用免责声明就足够了... 先决条件 Cloud Foundry和Diego部署 CF CLI v6.16 + 您想要对Cloud Foundry进行部署并运行的应用程序 这个限速器应用 $ git clone https://github.com/cloudfoundry-samples/ratelimit-service.git 以下示例使用的是 您想要速率限制的应用程序在上运行,并在运行时上运行。 安装 部署速率限制器应用 $ cd ratel
【文件预览】:
ratelimit-service-master
----rate_limiter_test.go(1003B)
----Procfile(23B)
----LICENSE(11KB)
----ratelimit_service_suite_test.go(209B)
----main.go(3KB)
----.gitignore(24B)
----go.sum(1KB)
----README.md(10KB)
----rate_limiter.go(744B)
----go.mod(327B)
----store()
--------store_test.go(631B)
--------store_suite_test.go(188B)
--------store.go(2KB)

网友评论