Rate Limit + Metadata

Suggestions on how to handle getting metadata for things like game variant with such a low rate limit? With developer, you can do 10 per 10 seconds, so if your first request gets the match data, then you use the id from all of the returned object(25 by default), that is going to be 25 requests in a single for loop iterating over all of them and requesting the Ids. Adding some timeout or interval to wait 10 seconds doesn’t seem elegant, and lowering the limit to 10 instead of the default 25 returned wouldn’t help because a second request could still be made if they entered another user name.

Plus any other meta data that is needed.

Cache the metadata responses.

If, for example, you need to get MapVariant by Id ‘54E0EDA8-C71A-47DC-BFAB-912D0E75161B’, you shouldn’t need to request that data again. Pull it from your local cache instead of going to the remote API again.

I.e. any future request for MapVariant by Id ‘54E0EDA8-C71A-47DC-BFAB-912D0E75161B’ should come from your own data.

Metadata doesn’t typically change very often, you could do a refresh on application startup.