Skip to content

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

@youngzil

Description

@youngzil

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

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

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

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

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

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

其它背景

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions