速率限制

    The rate limit HTTP middleware allows restricting the maximum number of allowed HTTP requests per second. 速率限制可以保护您的应用程序免受拒绝服务(DOS)攻击。 DOS攻击可以由恶意的第三方发起,也可以由你的软件中的错误发起(也就是 “友军 “DOS攻击)。

    一旦达到上限,请求将返回 HTTP Status code 429: Too Many Requests

    To be applied, the middleware must be referenced in . See middleware pipelines.

    1. apiVersion: dapr.io/v1alpha1
    2. name: appconfig
    3. spec:
    4. handlers: