Saturday, May 11, 2019

System Design : Load Balancing | How Load Balancers work



Features of Load Balancer:

  • Distribute load/requests across multiple resources/servers.
  • Keep track of status of all resources while distributing requests. If a server is down, it stops sending traffic to that server. [depending on activeness of the server]
  • Ease of use in adding/removing servers in network based on demand.


Algorithms used for Load Balancing:

1. Round Robin
2. Least Connections
3. Least Response Time
4. IP Hash
5. URL Hash


Where can we use Load Balancers?

  • User Requests -- [Load Balancer] -- Web Server
  • Web Server --  [Load Balancer] -- Backend Server
  • Internal Server -- [Load Balancer] -- Databases

Detailed explanation can be viewed on Knowledge Center's Youtube channel:


Subscribe to KnowledgeCenter 

Wednesday, May 8, 2019

4 Tips to crack System Design Interview



  • Leverage your Existing Knowledge:
    • Database Technologies
    • Load Balancers
    • Message Handlers
    • Caching Techniques
    • Scaling Techniques
  • Understand the Problem very well: (Ask Questions)
    • Constraints ?
    • Users - Who, How large ?
  • High Level Architecture Design (Abstract Design):
    • Break problem into Components/Modules
    • How the components are connected
    • Don't go Deep
  • Go Deep into Component of Interest:
    • UI
    • Database Side
    • Caching
    • Scalability
    • Server
Detailed Explanation can be found on Youtube:


Subscribe toKnowledgeCenter 

LeetCode 30 Day Challenge | Day 7 | Counting Elements

Given an integer array  arr , count element  x  such that  x + 1  is also in  arr . If there're duplicates in  arr , count them sepe...