You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 28, 2019. It is now read-only.
A pull-though cache is just a simple HTTP cache... When working in data-center etc, we won't have cheap object storage available, so we have to do pull-through caches.
cloud-mirror can support this by taking the rawUrl choosing a cache server using something like: cacheServers[fnv(rawUrl) % cacheServers.length]...
So that if we have multiple cache servers, urls get distributed based on hash of the url...
The put operation for such a pull-through cache is pretty naive, as there is no copying, just choose a cache server and rewrite the url. This could be a special implementation CacheHandler as proposed in #9. Or we could do the redis and sqs messaging even if it is unnecessary and do a trivial implementation of StorageProvider.
Either way, when region detection based on ip ranges is moved to cloud-mirror (issue #6) it would be very nice to support backends that are essentially pull-through caches. Otherwise, support for data-center and providers like digital ocean or packet will be hard.
A pull-though cache is just a simple HTTP cache... When working in data-center etc, we won't have cheap object storage available, so we have to do pull-through caches.
cloud-mirror can support this by taking the
rawUrlchoosing a cache server using something like:cacheServers[fnv(rawUrl) % cacheServers.length]...So that if we have multiple cache servers, urls get distributed based on hash of the url...
The
putoperation for such a pull-through cache is pretty naive, as there is no copying, just choose a cache server and rewrite the url. This could be a special implementationCacheHandleras proposed in #9. Or we could do the redis and sqs messaging even if it is unnecessary and do a trivial implementation ofStorageProvider.Either way, when region detection based on ip ranges is moved to cloud-mirror (issue #6) it would be very nice to support backends that are essentially pull-through caches. Otherwise, support for data-center and providers like digital ocean or packet will be hard.