# Load Balancing Strategies: From Theory to Practice with HAProxy

##### <span class="mw-headline" id="bkmrk-date-%26-time-1">Date &amp; Time</span>

- Event: sdnog weekly workshops
- Date: Saturday 19 July 2025
- Time: 13:00 - 15:30 (Sudan Time)
- language : Arabic

##### <span class="mw-headline" id="bkmrk-intended-audience-1">Intended Audience</span>

This workshop is specifically designed for Senior Systems Engineers who are looking to deepen their understanding of load balancing and HAProxy configuration.

##### <span class="mw-headline" id="bkmrk-description-1">Description</span>

This workshop is a comprehensive 2-hour session that includes both theoretical concepts and practical hands-on labs, with a short break about the Importance of load balancing in modern infrastructure

##### <span class="mw-headline" id="bkmrk-instructor-1">Instructor</span>

- <span class="mw-headline">Manhal Mohamed  
    </span><span class="mw-headline">[https://www.linkedin.com/in/manhalmohammed/](https://www.linkedin.com/in/manhalmohammed/)</span>

##### <span class="mw-headline">Tutor </span>

- <span class="mw-headline">Abdelrahman Mohamed  
    [https://www.linkedin.com/in/abdulrahmanfagiry/](https://www.linkedin.com/in/abdulrahmanfagiry/) </span>

##### <span class="mw-headline" id="bkmrk-agenda-1">Agenda</span>

##### <span id="bkmrk--1"></span><span class="mw-headline" id="bkmrk-introduction-%285-minu-1">Introduction (5 minutes)</span>

- Brief overview of load balancing concepts
- Importance of load balancing in modern infrastructure

##### <span id="bkmrk--2"></span><span class="mw-headline" id="bkmrk-load-balancing-funda-1">Load Balancing Fundamentals (15 minutes)</span>

- Types of load balancers:

```
 * Layer 4 (L4) vs. Layer 7 (L7)
```

- Common load balancing algorithms:

```
 * Round Robin
 * Least Connections
 * IP Hash
```

- Health checks and failure handling

##### <span id="bkmrk--3"></span><span class="mw-headline" id="bkmrk-introduction-to-hapr-1">Introduction to HAProxy (10 minutes)</span>

- Overview of HAProxy and its key features
- Architecture and components of HAProxy

##### <span id="bkmrk--4"></span><span class="mw-headline" id="bkmrk-haproxy-configuratio-1">HAProxy Configuration Basics (20 minutes)</span>

- Structure of the HAProxy configuration file
- Key sections:

```
 * Frontend
 * Backend
```

- Access Control Lists (ACLs) and `use\_backend` rules

##### <span id="bkmrk--5"></span><span class="mw-headline" id="bkmrk-advanced-haproxy-fea-1">Advanced HAProxy Features (20 minutes)</span>

- SSL termination
- Sticky sessions
- HTTP rewriting and redirection
- Logging and monitoring

##### <span id="bkmrk--6"></span><span class="mw-headline" id="bkmrk-live-demo%3A-setting-u-1">Live Demo: Setting up HAProxy (30 minutes)</span>

- Installing HAProxy
- Configuring a basic load balancer
- Testing and verifying the setup
- Demonstration of advanced features

##### <span id="bkmrk--7"></span><span class="mw-headline" id="bkmrk-best-practices-and-p-1">Best Practices and Performance Tuning (10 minutes)</span>

- Optimization of HAProxy configuration
- Security considerations
- Scaling HAProxy

##### <span class="mw-headline" id="bkmrk-session-hands-on-1">Session Hands-On</span>

- Slides ["click here"](https://drive.google.com/file/d/1FkagbjrE2u-B5TVzihiZ7idzuJ78iMP-/view?usp=sharing)
- [HAProxy Lab Setup Guide - Multi-OS Installation](https://docs.sdnog.sd/books/sdnog-workshops/page/haproxy-lab-setup-guide-multi-os-installation "HAProxy Lab Setup Guide : Multi-OS Installation")

##### Session's Record

[https://drive.google.com/file/d/1CllH3fveQhA-ZHfFC2ydCyyHaUXE6zka/view?usp=share\_link](https://drive.google.com/file/d/1CllH3fveQhA-ZHfFC2ydCyyHaUXE6zka/view?usp=share_link)