Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any benefit to adding a cdn in front of image-steam? #67

Closed
dottodot opened this issue Feb 1, 2019 · 3 comments
Closed

Is there any benefit to adding a cdn in front of image-steam? #67

dottodot opened this issue Feb 1, 2019 · 3 comments
Labels

Comments

@dottodot
Copy link
Contributor

dottodot commented Feb 1, 2019

Just wondering if in your experience there is much benefit to having a cdn in front of image-steam?

@asilvas
Copy link
Owner

asilvas commented Feb 1, 2019

Highly dependent on your usage patterns and architecture. If assets are accessed frequent enough to resolve at the CDN, then most certainly a benefit. Even if your CDN cache hit rates aren't ideal (< 50%), there are other benefits such as H2, and edge routes to origin are often more optimal than client to origin direct. It's rarely a bad idea to use a CDN, even if it's to protect from bursty loads. With that said, image-steam can be used with a diverse range of architectures, including replication across several DC's (via AWS S3 for instance), providing a CDN-like experience. But in general, CDN is going to bring the bigger bang for the buck.

@asilvas
Copy link
Owner

asilvas commented Feb 1, 2019

For a reference point, we use isteam across a few regions (routed via geo-DNS, much like route53) w/o replication (to keep costs down), fronted by CDN. Each region is cached by a persistent (S3 compatible) store with 5-day TTL's on objects. Our median response times are sub 40ms, which is pretty good for images. Our 99th is much higher, mostly due to to having to fetch from origin which can be in a different region. Our cache hit rates on CDN are fairly low, but still beneficial.

@dottodot
Copy link
Contributor Author

dottodot commented Feb 1, 2019

@asilvas Nice one, thanks for taking the time to answer.

@asilvas asilvas pinned this issue Feb 1, 2019
@asilvas asilvas closed this as completed May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants