Skip to content

POC: Drop extra idempotent requests in the limiter

John Cai requested to merge jc-idempotent-limiter into master

For certain special RPCs such as ReplicateRepository and OptimizeRepository, they don't have arguments and are an idempotent operation per repository. So, having many requests for the same repository do not help. In this special case we can have the limiter drop the requests with a gRPC AlreadyExists (or another) code that signals more requests in a short time frame are no longer necessary.

Merge request reports