what happens when APIM cache is full?

Martin Kallukalam 355 Reputation points
2024-08-13T10:57:36.4333333+00:00

When APIM cache is full , what happens to cache-store and cache-store-value policy ?
Do these policies fail or APIM will transparently purge the oldest cache entry to make room for the new entry?
Is there an official document which explains what the behavior would be?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,160 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marcin Policht 25,285 Reputation points MVP
    2024-08-13T11:10:20.49+00:00

    As far as I understand, you are correct in your expectations . When the cache in Azure API Management (APIM) is full, the system will automatically evict the oldest cache entries to make room for new ones. This eviction is managed transparently by the APIM service, so your cache-store and cache-store-value policies do not fail due to a full cache. Instead, the cache continues to operate normally by purging older entries as needed to store new ones.

    This behavior ensures that your caching strategy remains functional even when the cache reaches its maximum capacity, without causing failures or requiring manual intervention.

    This behavior is typical for most caching systems - I'm not aware of any specific documentation that would explicitly describe this behavior.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.