Search code examples
amazon-web-servicesamazon-cloudfrontaws-global-accelerator

AWS CloudFront vs Global Accelerator for Dynamic contents


What is the difference between CloudFront and Global Accelerator when we want to serve dynamic contents?

https://aws.amazon.com/cloudfront/dynamic-content/

I expect that CloudFront is CDN, so it is used for static files such as images and videos. However, this webpage above says CloudFront can be used for dynamic contents too. Therefore, no cache will be used and every time CloudFront asks the origin server (e.g. ALB) for new contents. Obviously, clients access edge locations, so responses will be faster than accessing directly to ALB.

https://aws.amazon.com/global-accelerator/

On the other hand, Global Accelerator is a service to let clients access edge locations and make response time shorter.

I don't really see the difference between these two in the context of dynamic contents. Could anyone explain this?


Solution

  • Please check Global Accelerator FAQs for how is Global Accelerator different from CloudFront.

    I use Global Accelerator to route traffic across regions to mitigate endpoint failures. You cannot achieve this using CloudFront alone.