Reputation: 14306
I've just came across this article. It turns out that Fastly's CDN provides support for caching rest api responses. This looks like a perfect solution to relieve your own server and database. Especially if query/command ratio is very high. Basically it works like that:
purge
request to the CDNpurge
request CND queries you api for new results and caches itThey provide a configuration interface where you can define caching rules.
Does Azure CDN provide the same kind of functionality? I can't find any information about it on the web.
Upvotes: 1
Views: 1446
Reputation: 1439
It seems like the place that this would live would be in the api management service. According to a discussion at the bottom of an article about adding caching to improve api performance they seem to say your scenario isn't possible
from the discussion:
"Is it possible to programatically evict something from the cache?"
-- "Currently this is not supported"
Upvotes: 2