M/s VIKASH TECH - We Write Imaginations to Codes..!!

Reduce server response times (TTFB)

Server response time

When we talk about website performance, one of the ways to improve the performance is by reducing the server response time, also known as Time To First Byte (TTFB).

The server response time is considered as the time taken to reply to a request initiated by a user. When any user sends a request to view a page on a website, the server has to do multiple operations before sending the output back to the user, it may include mathematical and logical operations. These operations take some time to execute, this time taken to respond to a user’s request is known as server response time.

For example, if a user is looking to check his transaction history for the last year, the server will have to generate a list of all the transactions done within the given time period from the database and then push it into the page. This can take time and can lead to a greater response time.

How to reduce server response time?

To reduce the server response time, one needs to follow the basic steps as mentioned below:

  • Start by identifying the core task that your server needs to perform before providing the first output.
  • Identify the task taking the longest time to complete, and then try to optimize it or if possible use a different approach to run it. For example, if you are loading blog posts, you can either load all the posts at a time or can show the latest 5 at the time of page load and do ajax calls to load the rest of them when the user scrolls the page.
  • User a good server, which provides more processing capacity, more process threads, for hosting your website. One of the good web hosting providers is CLOUDPOKO
  • If you are using a dedicated server or your own server to host your website, you should upgrade the hardware to meet the processing requirements.
  • Try to make fewer database calls as much as possible, this will reduce the server busy time. As your customer base grows, if too many database calls are done, your customers may get lags in getting responses.

To check your servers response time, you can visit – https://developers.google.com/speed/pagespeed/insights/

Here you’ll be able to check the speed of all your website pages using Google’s Lighthouse report. Analyzing the report you’ll be able to find the changes required enhance the performance of your website.

Must Read
How to enhance improve website performance
How to improve website speed

If you find this article useful, do share it on your social media feeds, it will be a great support and will help to boost our morale to bring similar posts for everyone.

Category :

Comments

No comments found.

….

FLAT 50% OFF

Latest Posts

How to Implement Google QAuth Authentication | Google Login - PHP MySQL

PHP Google OAuth API allows users to login into a website with their Google credentials. A user with a Google…

How to use Google Two Factor Authentication in your project?

At our end we take security at a priority, implementation of different ways to secure website should be the priority…

How to verify an email address before sending emails?

Email marketing is a great way to reach your clients, but while sending emails from a mail service provider, its…

Templates - In Flask

Templates are the structure of a website. Here in Python Flask. templates are treated as the views, which means these…

%d bloggers like this: