Current time: 09-25-2020, 11:29 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time To First Byte is longer after upgrading to new server
09-11-2014, 10:08 PM
Post: #8
RE: Time To First Byte is longer after upgrading to new server
If the performance itself is fast then don't worry about the grades specifically. The First Byte time grade doesn't work well for CDN's because of how the logic works and how the CDN architecture works.

To pick a target time the algorithm looks at the socket connect time and assumes that is the RTT to the server. It then allows 100ms in addition to that for server processing to get an A and drops by a letter grade for every 100ms after that.

When you connect through a CDN for the base page the socket connect time is the RTT to their edge and is much faster so the estimate will already be off. Additionally they will usually still need to establish a connection to your origin server (and maybe do a DNS lookup) and that all gets done in the request TTFB (green bar) behind the scenes before your server ever sees the request.

There might be some tuning you can do with DNS TTL and the like to make sure CloudFlare doesn't have to resolve your origin very often (and I'm assuming they are doing it on-demand as needed, they could well be doing something smarter).
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Time To First Byte is longer after upgrading to new server - pmeenan - 09-11-2014 10:08 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)