Yesterday I asked about unproductivity guilt and after going through all the suggestions I thought it will be best if I post overview of what I have learnt here everyday. So today I learned how we can scale our systems. Here is an overview of it 1. Use stateless web tier as in stateless apps each request is processed separately i.e they do not store session data and hence we can easily increase the server instances. 2. We should have multiple replication of db and make sure they all are synchronised to avoid single point of failure. 3. Use cache wherever db is getting hit very frequently. 4. Use CDN for static files 5. Use sharding if your table becomes so big that it takes too much time executing the query. Remember it has its own pros and cons 6. Use monitoring tools like grafana, new relic etc to know which API is slowing down the system or where the error has occured etc
Download the medial app to read full posts, comements and news.