ruanwenjun commented on issue #5235: URL: https://github.com/apache/incubator-dolphinscheduler/issues/5235#issuecomment-816548698
> Can you state your specific design plan. Setting request limit is mainly to protect the system. The simple way is to set the global request limit, this can prevent users from sending numerous requests by mistake. When the system receives the maximum number of request, it fast returns 429 for new requests. But this also affect other tenant, so we need to set alone request limit for each tenant. The specific implementation is to create `RateLimit` for each user and store in memory. When the user reaches his maximum request quota in one seconds, the system will reject his new request. This can isolate different tenants. Furthermore we can set the read-write level rate control. Cooperate with global rate limit and tenant-level rate limit can protect the system. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
