Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloudfront suddenly slow

Tags:

We are a B2B company and one of our clients customers is facing very slow download speeds from our cloudfront distribution for the 6-7 days. Earlier it was working fine. Our client provides learning videos which his customer is not able to stream at all (speeds < 4-5 kbps). The internet connection is good as all other video sites are working smooth and even cloudfront was smooth earlier. 2-3 other customers have also been complaining about sudden slowness.

like image 496
Harshit Avatar asked Oct 02 '18 05:10

Harshit


People also ask

Why does CloudFront take so long?

This is because CloudFront delivers content through a worldwide network of low latency and high performance edge locations. It can take additional time depending on how long it takes to propagate changes in configurations such as certificates, origins, settings and more.

How do you reduce latency in CloudFront?

To avoid latency from forwarding requests to the origin, check the following to be sure that requests can be served from CloudFront edge locations: Don't forward all headers, all cookies, or all query strings, because this directs CloudFront to pass through requests instead of caching them.

Can CloudFront be hacked?

Hackers insert JavaScript into pages, but payload is currently empty. Potential hackers are spoofing Amazon's content delivery network CloudFront to create a means of injecting a malicious payload into websites, according to security firm Sucuri.


1 Answers

I will advice you to try following steps to debug to understand where the real problem is:

  1. accessing the video directly viz. using S3 bucket and not via CloudFront. Response with CloudFront should be faster as compared to accessing directly.

  2. Note that Cloudfront is faster when u acccess same video second time. First time it will be slower.

  3. Try accessing via CF from different IP Address and if possible from different Data provider. Might be you can try using your Mobile connection.. sometimes, it is the problem of connectivity between that particular data provider and CF.

like image 79
Deepak Singhal Avatar answered Nov 11 '22 03:11

Deepak Singhal