mercredi 20 décembre 2017

Cache put item concurrency and throughput

Most CDN servers use caching for frequently accessed contents.

Scenario: Lets suppose someone uploaded a very trending pic and many users (1000) from same location trying to access that pic.

Question: Lets say webserver receives a request first checks it cache and it found content miss for that pic and pull the content from CDN.If pull takes lets say x secs and server got 999 more request meanwhile for the same content.

Would server fetch content 999 more times from server (as server still pulling data and there is no data in cache) and update cache?

If not what schemes server implements to avoid these kind of situation.




Aucun commentaire:

Enregistrer un commentaire