CodeSnatch Logo
 ██████╗ ██████╗ ██████╗ ███████╗    ███████╗███╗   ██╗ █████╗ ████████╗ ██████╗██╗  ██╗██╔════╝██╔═══██╗██╔══██╗██╔════╝    ██╔════╝████╗  ██║██╔══██╗╚══██╔══╝██╔════╝██║  ██║██║     ██║   ██║██║  ██║█████╗      ███████╗██╔██╗ ██║███████║   ██║   ██║     ███████║██║     ██║   ██║██║  ██║██╔══╝      ╚════██║██║╚██╗██║██╔══██║   ██║   ██║     ██╔══██║╚██████╗╚██████╔╝██████╔╝███████╗    ███████║██║ ╚████║██║  ██║   ██║   ╚██████╗██║  ██║ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝    ╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝   ╚═╝    ╚═════╝╚═╝  ╚═╝

Learn · Earn · Connect

Tags

Load Balancing

Load Balancing

0 lessons
2 system designs

load-balancing

System Design

2 articles
System Design

DNS and Domain Routing

DNS (Domain Name System) is the phonebook of the internet. It translates human-readable domain names like 'google.com' into IP addresses that computers use to route traffic. This lesson explains how DNS resolution works, the hierarchy of DNS servers, common record types, and how DNS is used in system design for load balancing, failover, and global traffic routing.

dns
domain-routing
networking
nameservers
dns-records
load-balancing
route53
beginner

846

21

Easy
System Design

Load Balancing Algorithms & Patterns

A load balancer is the traffic cop in front of every horizontally scaled service. This lesson covers the four scheduling algorithms you need to know (round-robin, least-connections, weighted, hash), the difference between Layer 4 and Layer 7 load balancing, how health checks pull dead nodes out of rotation, the role of sticky sessions and connection draining, and the tools (NGINX, HAProxy, ELB/ALB, Envoy) that implement all of this. By the end you can pick the right algorithm for a workload and explain to an interviewer exactly how a request finds its way from the load balancer to a healthy backend.

load-balancing
round-robin
least-connections
sticky-sessions
health-checks
layer-4
layer-7
nginx
haproxy
system-design
beginner

1k

14

Easy

All topic tags

  • Abstraction
  • Accessibility
  • Adaptability
  • AI Safety
  • Algorithms
  • Amazon
  • Amortized Analysis
  • Analysis Techniques
  • API Design
  • API Gateway
  • Array Manipulation Patterns
  • Arrays
  • Arrow Functions
  • Asymptotic Analysis
  • Async / Await
  • Asynchronous Programming
  • Authentication
  • Autocomplete
  • Availability
  • Backend
  • Backtracking
  • Balanced BST
  • Bar Raiser (Amazon-style)
  • Behavioral Interview
  • Behavioral Interviews
  • Bellman-Ford Algorithm
  • BFS
  • Big-O
  • Big-Ω (Omega)
  • Binary Search
  • Binary Search Templates
  • Binary Search Tree (BST)
  • Binary Tree
  • Bit Manipulation
  • Bitmask DP
  • Blob Storage
  • C++ STL
  • Caching
  • Call Stack
  • Career
  • Career Narrative
  • Career Switcher
  • Case Study
  • CDN
  • Cheat Sheet
  • Classes & Objects
  • Clean Code
  • Closures
  • Code Organization
  • Code Template
  • Coding Interview
  • Collaboration
  • collections Module
  • Communication
  • Company-Specific
  • Comparison
  • Complexity Classes (P/NP)
  • Composition
  • Computational Geometry
  • Concurrency
  • Conditional Types
  • Conditionals
  • Connected Components
  • Consistency
  • Consistent Hashing
  • Core Values
  • Correctness
  • Craftsmanship
  • CSS Grid
  • CSS Selectors
  • CSS Variables (Custom Properties)
  • Culture Fit
  • Cycle Detection
  • Data Modeling
  • Data Structures
  • Data-Intensive Systems
  • Database
  • Dataclasses
  • Dealing with Ambiguity
  • Debugging
  • Decision Making
  • Deep Dive
  • Deque
  • Design Patterns
  • DFS
  • Dict / Set Comprehensions
  • Dijkstra's Algorithm
  • Directed Graphs
  • Display Property
  • Distributed Systems
  • Divide and Conquer
  • DOM Manipulation
  • Doubly Linked List
  • Dynamic Programming
  • E-Commerce & Marketplace
  • Efficiency
  • Embedding
  • Error Handling
  • Event Delegation
  • Event-Driven Architecture
  • FAANG
  • Fast/Slow Pointers
  • Feed Ranking
  • Fetch API
  • Fibonacci
  • Flexbox
  • Foundations
  • Framework
  • Free
  • Frequency Count
  • Frontend
  • Functional Programming
  • Fundamentals
  • GCD / LCM
  • Generators
  • Generics
  • Graph Algorithms
  • Graph Representation
  • Graphs
  • Greedy
  • Grid DP
  • Hash Map / Dictionary
  • Hash Table
  • Hashing
  • Heap
  • Higher-Order Functions
  • Hoisting
  • Hooks
  • HTML Elements
  • HTML Media (Audio/Video)
  • HTTP
  • Idempotency
  • Immutability
  • Implementation
  • In-Place
  • Influence
  • Infrastructure & Storage
  • Inorder
  • Input / Output
  • Interval Problems
  • Interview Preparation
  • Interview Strategy
  • Invariants
  • Islands / Flood Fill
  • Iteration Patterns
  • Iterators
  • itertools Module
  • JavaScript Language
  • JS Event Loop
  • JWT
  • Kadane's Algorithm
  • Kafka
  • Knapsack Problem
  • Leadership
  • Leadership Interview
  • Leadership Principles
  • Level Order
  • Lexical Scope
  • List Comprehensions
  • Logging
  • Loops & Iteration
  • Lowest Common Ancestor (LCA)
  • LRU Cache
  • Machine Learning
  • Map / Filter / Reduce
  • Mapped Types
  • Master Theorem
  • Mathematics
  • Matrix Algorithms
  • Matrix Traversal
  • Max Heap
  • Media Queries
  • Memoization
  • Merge Intervals
  • Merge Sort
  • Message Queue
  • Messaging & Communication
  • Meta
  • Microservices
  • Min Heap
  • ML System Design
  • Monitoring
  • Monotonic Stack
  • Multi-Source BFS
  • Networking
  • Number Theory
  • Object-Oriented Programming
  • Offer Negotiation
  • OpenAI
  • Ownership
  • Palindrome
  • Patterns
  • Performance
  • Performance Optimization
  • Pointers
  • Prefix Sum
  • Premium
  • Priority Queue
  • Probability Basics
  • Problem Solving
  • Promises
  • Proof Techniques
  • Python Decorators
  • Python Generators
  • Python Standard Library
  • Query Optimization
  • Queue
  • Quick Sort
  • Quiz
  • Randomized Algorithms
  • Range Queries
  • Rate Limiting
  • React
  • Real-Time
  • Recurrence Relations
  • Recursion
  • Redis
  • References
  • Regular Expressions
  • Reliability
  • Resilience
  • Responsive Design
  • REST API
  • Role-Specific
  • Saga Pattern
  • Scalability
  • Search & Discovery
  • Searching
  • Security
  • Segment Tree
  • Self-Awareness
  • Senior-Level Interviews
  • Set
  • Shortest Path
  • Simulation
  • Singly Linked List
  • Sliding Window
  • Social and Content Platforms
  • Social Media
  • Sorting
  • Space Complexity
  • Spread / Rest Operator
  • SQL
  • Stack
  • Stakeholder Management
  • STAR Method
  • Startup Culture
  • State Machine
  • Story Banking
  • Storytelling
  • Stream Processing
  • String Manipulation
  • String Matching
  • Strings
  • Stripe
  • Sweep Line
  • System Design
  • System Design Interview
  • Tabulation
  • Teamwork
  • Testing
  • Theory
  • this Keyword
  • Throttling
  • Time Complexity
  • Topological Sort
  • Tracing / Dry Run
  • Trade-offs
  • Tree Traversal
  • Trees
  • Trie / Prefix Tree
  • Trie Operations
  • Two Pointers
  • Type Guards
  • Type Hints
  • Type Narrowing
  • Type System
  • TypeScript Generics
  • Undirected Graphs
  • Union by Rank
  • Union-Find / DSU
  • Unit Testing
  • Utility
  • Utility Types
  • Vector Search
  • Web APIs
  • WebSockets
  • Weighted Graphs
  • XOR Tricks