Azure front door cache vs Azure Redis Cache

Ankita-0970 81 Reputation points
2022-07-06T06:59:04.96+00:00

We have option of caching at Azure Front Door or Azure Redis cache for our services. The data we want to cache is a response of few KB for every query parameter. As per my understanding, both the approach is feasible. The only difference will be that for AFD caching, the key will be the url and for Redis, we will decide the key.
Is my understanding correct?
Which caching should be used for this use case? Are there any limitations with AFD caching where we should prefer Azure Redis over it?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
546 questions
Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
202 questions
{count} votes

Accepted answer
  1. Anurag Sharma 17,536 Reputation points
    2022-07-08T02:38:29.547+00:00

    Hi @Ankita-0970 , thanks for your patience. Please refer to below reply for your query from product group.

    If front door meets your needs (only caches for GET requests, one of the query string behaviors fits your needs, then you don’t need extra control over expiration, etc. Caching with Azure Front Door) then it is probably a better fit for use case and provides some benefits that would take extra work to replicate with Azure Cache for Redis such as being a ‘global’ resource, caching at the edge, and reducing the number of requests made to their servers.

    If you need to cache for other types of requests, want to be able to scale out servers, or have an application running on servers that would benefit from being able to cache arbitrary data inside of a region or set of regions with extra control over the data then Redis would be a good fit.

    Also they aren’t mutually exclusive, AFD could be used to cache GET requests and reduce overall requests to the backend while Redis improves the performance of requests that do get forwarded as long as we can understand how both are working at the same time (eg a response expiring in Redis doesn’t mean that it expires in AFD)

    Please let us know if this helps.

    ----------

    If answer helps, you can mark it 'Accept Answer'

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful