Types of Load Balancing Algorithms (Animated + Code Examples)

Поделиться
HTML-код
  • Опубликовано: 3 июл 2024
  • 🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
    ▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬
    ► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience)
    ► Located in San Francisco Bay Area, CA (US citizen)
    ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
    ► LinkedIn: / anton-putra
    ► Twitter/X: / antonvputra
    ► GitHub: github.com/antonputra
    ► Email: me@antonputra.com
    ▬▬▬▬▬▬ Related videos 👨‍🏫 ▬▬▬▬▬▬
    👉 [Playlist] Kubernetes Tutorials: • Kubernetes Tutorials
    👉 [Playlist] Terraform Tutorials: • Terraform Tutorials fo...
    👉 [Playlist] Network Tutorials: • Network Tutorials
    👉 [Playlist] Apache Kafka Tutorials: • Apache Kafka Tutorials
    👉 [Playlist] Performance Benchmarks: • Performance Benchmarks
    👉 [Playlist] Database Tutorials: • Database Tutorials
    ▬▬▬▬▬▬▬ Timestamps ⏰ ▬▬▬▬▬▬▬
    0:00 Intro
    2:42 Static Algorithms
    3:13 Round Robin Algorithm
    5:05 Round Robin Algorithm Demo
    6:12 Weighted Round Robin Algorithm
    8:02 Weighted Round Robin Algorithm Demo
    8:48 DNS Round Robin Algorithm
    9:52 DNS Round Robin Algorithm Demo
    10:14 IP hash Algorithm
    11:33 URL hash Algorithm
    12:24 IP hash Algorithm Demo
    12:49 Random Allocation
    13:25 Random Allocation Demo
    13:43 Dynamic Algorithms
    14:10 Least Connection Algorithm
    15:03 Least Connection Algorithm Demo
    15:49 Weighted Least Connection Algorithm
    16:17 Weighted Least Connection Algorithm Demo
    16:43 Least Response Time Algorithm
    17:15 Least Response Time Algorithm Demo
    17:36 Resource Based Algorithm
    18:52 Geo-Location Based Load Balancing
    20:01 Rate Limiting
    20:34 Rate Limiting Demo
    21:25 Session Persistence
    22:20 Session Persistence Demo
    ▬▬▬▬▬▬▬ Source Code 📚 ▬▬▬▬▬▬▬
    ► GitHub: github.com/antonputra/tutoria...
    #networking #devops #cloud
  • НаукаНаука

Комментарии • 18

  • @AntonPutra
    @AntonPutra  3 месяца назад +2

    🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com

  • @rohannikumbh8056
    @rohannikumbh8056 3 месяца назад +3

    You are best creator. I understand things visually more better and quick, you do it nicely. Other youtubers just theoretically explain. You are best

  • @ndk8111
    @ndk8111 3 месяца назад +3

    Hello Anton,
    I’ve been incredibly fortunate to stumble upon your channel, and ever since, I’ve delved into your instructional videos with great enthusiasm. Your presentations stand out for their clarity, depth, and accessibility, making complex concepts seem manageable and easy to understand. It’s clear you possess a rare talent for teaching, breaking down intricate topics into digestible parts that greatly benefit learners like me. Your dedication to sharing your knowledge reflects not only on your profound expertise but also on your commitment to cultivating a supportive learning community.
    Your tutorials have profoundly impacted my learning journey, enhancing both my understanding and my skills. The practical examples and hands-on methods you use transform the learning experience from merely informative to truly enjoyable. You’ve managed to create content that meets the developer community’s needs, making technology’s more daunting aspects seem approachable. Your videos have not only improved my technical abilities but have also given me the confidence to embrace new challenges head-on.
    Thank you for your remarkable contribution to the learning community. Your willingness to share your insights and knowledge is deeply valued. Please, keep up the fantastic work. Your generosity has a wide-reaching impact, and I am just one among many who have immensely benefited from your guidance. I eagerly anticipate your future videos and the continued growth of the vibrant community you’re nurturing.👏🤩
    Sincerely.

    • @AntonPutra
      @AntonPutra  3 месяца назад +1

      Thank you very much! I appreciate it!

  • @johnbox5540
    @johnbox5540 3 месяца назад +1

    amazing content. thank you sir

  • @kdetony
    @kdetony 2 месяца назад +1

    Excelent, how question, What program do you use for the animation?... Regards

  • @urigroovy
    @urigroovy 3 месяца назад

    Hi Anton, what's the best practices to deploy internal app for a team, a monitoring tool for example to allow easily access without expose it?

    • @AntonPutra
      @AntonPutra  3 месяца назад +3

      Almost always use a VPN. Not only can you expose your app to your team internally, but you can also use a private DNS and push it via VPN configuration. For example, you can create a private Route 53 hosted zone, and when you connect to the VPN, you push the DNS server configuration to each client.

  • @Babbili
    @Babbili 3 месяца назад

    i wonder if Envoy proxy load-balancer also can be configured for these algorithms

    • @AntonPutra
      @AntonPutra  3 месяца назад +1

      I does support few, I have some examples as well - github.com/antonputra/tutorials/blob/main/lessons/151/ansible/roles/envoy/files/envoy.yaml
      Supported load balancers - www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/load_balancers

    • @Babbili
      @Babbili 3 месяца назад

      @@AntonPutra thank you for the video, it's a reference

  • @VM-yp2rl
    @VM-yp2rl 3 месяца назад

    How servers are synchronizing changes in databases (probably separate db for each server)

    • @AntonPutra
      @AntonPutra  3 месяца назад

      Usually you have one db behind, master where services write and replicas if you have read intensive app

    • @VM-yp2rl
      @VM-yp2rl 3 месяца назад

      ​@AntonPutra, do you mean one external server for the database or an additional load balancer for a cluster of database servers? :)

    • @AntonPutra
      @AntonPutra  3 месяца назад

      @@VM-yp2rl typically there is a single database instance behind 1 microservice (can have many replicas). So all application instances would write to the same database, there is no need to sync. There are some advanced uses cases when you have multiple database instances with different sync protocols, such as master-slave or master-master