In this article, we will cover one of the Analytics metrics for the API Management, Cache. You can check the Cache Metric for your APIM to know, how effective your APIM internal caching is in executing different API requests from the internal cache.
There're two metrics listed under Cache diagram in the APIM analytics:
- Cache Hit: this metric shows how many times your API requests have been able to find the expected response in the internal cache for your APIM instance.
- Cache Miss: this metric shows how many times your API requests did not find a response in the internal cache for your APIM instance.
There's a built-in feature to have an internal caching for your APIM, based on your tier. The higher the tier, the more is the internal caching capacity you would have for your APIM instance.
It would help if you decided which data you need to cache to provide your APIs' best performance. Also, it's important to define the cache expiry period.
There're different caching policies you could use for APIM instances. We're going to cover them in another tip!