If a Website is scalable it means that even if Load increases(large no. of client are trying to access the server) it does not substantially effect the performance & speed of request-response routine.
One of the frequently used technique for this purpose is Caching.
Caching Basics
Retrieving data from the database is time-expensive whereas doing the same from a File/Memory(HashMap) is fast.Therefore it helps the server to deliver the resource quickly.
Caching is done under following conditions -
1. For the data which is frequently demanded from the clients
2. Admin of the website is making changes in the database.Therefore cached data must also be updated.
3. Caching is done for the first request.next time a client tries to access the data, it is fetched from the cached file and not from the database
No hay comentarios:
Publicar un comentario