Open asoorm opened 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, please add comments to this ticket if you would like it to stay open. Thank you for your contributions.
not stale
Branch/Environment/Version
all
Describe the bug
What happens:
API key does not exist in hybrid cluster of gateways. Hybrid Gateway calls MDCB to obtain the API key. Under high RPS, multiple calls to MDCB occur for the same information in parallel. This is particularly problematic when client is using incorrect credentials.
What should happen:
A single call in-flight to the hybrid layer at a given point in time for given api key would be a more efficient solution. especially in the case of the key not being found or if the api key is being used at a high RPS.
https://godoc.org/golang.org/x/sync/singleflight