Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apollo OpenAPI在apollo-portal中缺失限流功能,是否可以补充限流功能 #5244

Open
youngzil opened this issue Oct 3, 2024 · 1 comment
Labels
feature request Categorizes issue as related to a new feature. help wanted

Comments

@youngzil
Copy link
Contributor

youngzil commented Oct 3, 2024

你的特性请求和某个问题有关吗?请描述

目前的Apollo OpenAPI缺失必要的限流功能,很容易出现业务端的滥用或者误用,导致请求量过大的情况,影响apollo-portal的稳定性
在 apollo-portal中的 ConsumerAuthenticationFilter 是否可以新增限流功能

清晰简洁地描述一下你希望的解决方案

在 apollo-portal中的 ConsumerAuthenticationFilter 是否可以新增限流功能
初步方案:

  1. consumertoken表中新增LimitCount字段,保存每个Token的限流值
  2. 在 apollo-portal中的 ConsumerAuthenticationFilter 处理获取每个Token的限流值,并进行限流逻辑处理

清晰简洁地描述一下这个特性的备选方案

其它背景

BTW:如果觉得这个特性合理,我可以细化实现方案 并实现

@nobodyiam
Copy link
Member

Sounds a good idea.

@nobodyiam nobodyiam added help wanted feature request Categorizes issue as related to a new feature. labels Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Categorizes issue as related to a new feature. help wanted
Projects
None yet
Development

No branches or pull requests

2 participants