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:
- Command (DELETE / POST / PUT) request has to be handled by your server
- After the command completes your API sends a
purgerequest to the CDN - In response to the
purgerequest CND queries you api for new results and caches it - When user queries for a resource the request is handled by the CDN, not bothering your server at all
They 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.