Skip to content

Commit b9e37c9

Browse files
committed
Extend explanation of cost savings in a CDN
1 parent aedbf5f commit b9e37c9

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/infra/docs/cdn.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,23 @@ This document outlines why we use CDNs, for what, and how we have set them up.
1010

1111
## Objectives
1212

13-
- Reduce costs of outbound traffic by caching resources in the CDN
14-
- Reduce load on origin servers to save compute resources
15-
- Provide a way to rewrite legacy URLs for some resources
13+
We have three goals for our use of CDNs in our infrastructure:
14+
15+
1. Reduce costs of outbound traffic through cheaper pricing and caching
16+
2. Reduce load on origin servers to save compute resources
17+
3. Provide a way to rewrite legacy URLs for some resources
18+
19+
### Reducing Costs
20+
21+
As an open source project, we have to be very mindful of our infrastructure
22+
costs. Outbound traffic is by far one of the most expensive items on our monthly
23+
bills, and one that will continue to increase as Rust gets more popular.
24+
25+
Cloud providers typically charge different rates for outbound traffic based on
26+
the service. For example, serving data straight from [Amazon S3] is more
27+
expensive than serving the same data through an [Amazon CloudFront]
28+
distribution. This is why we now use a CDN by default, even for services that
29+
can't make use of other features of a CDN such as caching.
1630

1731
## Infrastructure
1832

0 commit comments

Comments
 (0)