rss
0

AJAX can reduce server load!

  • Sumo

How? It is not a secret that ajax is mainly used for loading partial content from server and thus no full page reload is needed.

This is a well-known technique, but there is another point of view, which I discovered during the development of a huge media website that is always under heavy load.

Consider single article page.

  • site header
  • article
  • related news -on the bottom

So during initial page load I have excluded “related news” block and put a small javascript that loads it via ajax when user scrolls down. Great!

Advantages I receive, is that when search engine crawls my article page it will not load unimportant data. Secondly, page size becomes smaller and thus page load is faster.

Third and the most important! More durability during DDoS attacks, because scroll event will not fire and thus there will not be an additional load on server, so server can handle a bit more requests before crushing :)

About the Author

Edgar Marukyan is an expert of website development and performance optimization, who maintains and consults clients with high load traffic websites.. If you need an assistance, feel free to drop me a line.         Website - Twitter - Facebook

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.