Initial vault setup

This commit is contained in:
2026-06-09 18:40:21 +02:00
commit bda02d587f
3692 changed files with 402457 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
---
title: Load Balancing
created: 2026-06-06
updated: 2026-06-06
type: concept
tags: [tech, networking, architecture]
confidence: high
contested: false
sources: [synthesized]
---
# ⚖️ Load Balancing
## Définition Courte
Répartition du trafic réseau entrant sur **plusieurs serveurs** (ou instances) pour améliorer la disponibilité, la scalabilité et les performances.
## Explication Détaillée
Un load balancer (LB) est l'aiguilleur du trafic. Stratégies de routage :
- **Round Robin** : à tour de rôle.
- **Least Connections** : vers l'instance la moins chargée.
- **IP Hash** : affinité de session (même client $\rightarrow$ même serveur).
- **Weighted** : certains serveurs reçoivent plus (hardware plus puissant).
Couches :
- **L4 (Transport)** : bas niveau (TCP/UDP), rapide, peu d'intelligence. (HAProxy, NLB AWS).
- **L7 (Application)** : inspecte HTTP, routage par URL/header. (Traefik, Nginx, Envoy).
## Cas d'Usage
- Scaler horizontalement une app web.
- Déploiement blue/green.
- Failover automatique.
## Outils Liés
- **HAProxy**, **Nginx**, **Traefik**.
- **Envoy** (service mesh).
- **AWS ALB/NLB**, **Cloudflare Load Balancer**.
## Pages Liées
- [[haute-disponibilite]]
- [[architecture-microservices]]
- [[traefik]]
## Questions Ouvertes
- L4 vs L7 : comment choisir ?
- Comment faire du load balancing stateful (WebSocket, gaming) ?
## Liens
- [[cache]]