Skip to content

Commit f1c9870

Browse files
committed
mention fastly cdn
1 parent f8ea9fc commit f1c9870

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/infra/docs/cdn.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ can't make use of other features of a CDN such as caching.
3232

3333
Most of the project's resources are hosted on [AWS]. Static content is stored in
3434
[Amazon S3], while dynamic content is loaded from a server. Both types of
35-
content are served through [Amazon CloudFront], the [Content Delivery Network]
36-
of AWS.
35+
content are served through the CDNs [Amazon CloudFront], and [Fastly].
3736

3837
When a user access a resource, e.g. they are trying to download a crate, they
3938
will access the resource through the CDN. Different _distributions_ map domain
@@ -42,11 +41,11 @@ downloading a crate from `static.crates.io` goes through a _distribution_ that
4241
fetches the crate from an S3 bucket and then caches it for future requests.
4342

4443
```text
45-
┌──► S3 (static content)
46-
47-
User ───────► CloudFront ────┤
48-
49-
└──► Server (dynamic content)
44+
┌──► S3 (static content)
45+
46+
User ───────► CDN ────┤
47+
48+
└──► Server (dynamic content)
5049
```
5150

5251
## Distributions
@@ -63,7 +62,7 @@ from `static.rust-lang.org`. The same is true when Rust is installed in a CI/CD
6362
pipeline, which is why this distribution has by far the highest traffic volume.
6463

6564
Rust binaries are static and are stored in [Amazon S3], from where they are
66-
served by the CloudFront distribution.
65+
served by the CDNs.
6766

6867
The distribution for `static.rust-lang.org` has a custom router that runs in a
6968
[AWS Lambda] function. The router provides a way to list files for a release and
@@ -85,4 +84,5 @@ distribution.
8584
[aws]: https://aws.amazon.com/
8685
[aws lambda]: https://aws.amazon.com/lambda/
8786
[content delivery network]: https://en.wikipedia.org/wiki/Content_delivery_network
88-
[rust-lang/simpleinfra]: https://github.com/rust-lang/simpleinfra
87+
[fastly]: https://www.fastly.com/
88+
[rust-lang/simpleinfra]: https://github.com/rust-lang/simpleinfra

0 commit comments

Comments
 (0)