In distributed system, to achieve availability, we write data at multiple places. It is possible that server could go down whenever there is an outage so we have to replicate data at multiple geo locations to achieve high availability.
Read MoreTag: system design
System design : pastebin.com
About pastebin.com
User can paste or write or store text for the specific period of time and the same content can be accessed / shared via a unique URL. Idea behind this system is that people should be able to share large amount of text online in simple and convenient manner with other people.
Functional requirements
- User should be allowed to paste their content and paste should be accessible via unique URL.
- Registered users can edit or delete their paste
- Paste would be removed from the system after 1 year. / Paste URL would be expired after 1 year of period.
Differences Between Push And Pull CDNs
Content delivery networks (CDNs) are most useful when we want to serve static files to our users like CSS, JS, HTML or any image files. It gives better user experience to user when they frequently access these static content. In this blog, we are going to cover about CDN, benefits of using CDN, types of CDNs and differences between those CDNs.
Read MoreComparing WebSockets with polling approaches
If you have ever built a web page’s chat room by using a server-side language and a database, then you may wonder what the difference is between the WebSocket implementation and the traditional one.
Read MoreCaching
Introduction
Caches take advantage of the locality of reference principle: recently requested data is likely to be requested again. A cache is like short-term memory: it has a limited amount of space, but is typically faster than the original data source and contains the most recently accessed items. Caches can exist at all levels in architecture, but are often found at the level nearest to the front end where they are implemented to return data quickly without taxing downstream levels.
Read More