How to reduce latency inorder to increase user friendly experience?
Method to reduce latency:
1. Caching : Process of storing information for a set period of time on a computer.
It reduces time of response by sending data to user directly
Let take an example of function returning id value after 1000 lines , we can use caching key to return id value.
example: idValue(int id){
//after 1000 lines
return id;
}
2. CDN --Content Delivery Network
static data--[not much change in data]
Data from USA kept in India by CDN Server [ i.e mostly static data] to get information faster.
CDN -Geographically distributed network of proxy server and their objective is to serve content to users more quickly.
3. Upgrade your system
Comments
Post a Comment