Simple steps to increase the performance of a web application.

Lets say you are tasked to analyze and increase the performance of a website. What are the things you would look into. What would you improve or what would you avoid.

This brief article discusses the simple steps to increase the performance of a web application.

Performace considerations

There are 3 places where performance can be increased

    1. Network Level
    1. Server Level
    1. Database Level
    1. Application Level

Network Level

At network level we can do the following optimizations.

    1. Reduce Number of requests, by combining requests
    1. Use CDN’s like cloudflare, maxcdn, cloudfront etc
    1. Minifiying the html, css and js content before sending it to the client.
    1. Use Local Caching to store data in the client browser using techniques like localstorage and sessionstorage

Server Level

At server level we can do the following optimizations.

    1. horizondal scaling - increase number of servers and put them after a load balancer.
    1. vertical scaling - increase the hardware of the single server by buying s bigger machine

Advantage of horizondal scaling is there is no limit to the number of servers you can have. But a horizondal scaling cannot buy more than a supercomputer.

Database Level

At the database level we can use sharding (splitting) of data

Application Level

This is a very big topic in itself, but the keywords to look out are, optimized way of storaging data, asyncronous operations.

comments powered by Disqus

Related Posts

How to Rename a Duplicate Column in Django

Suppose you have a model where there is a column, say ‘program_name’ that is duplicated The structure of the model is like this

Read more

Regex Cheatsheet

We have compiled a list of regular expression cheatbook to help in learning regular expressions. This is categorized into multiple sections for easy understanding.

Read more

Types of Web Hosting

The internet is emerging fast and big and today we have a variety of options to host our website than we had earlier.

Read more