Stateful vs Stateless Load Balancer

Published on: September 07, 2025

Tags: #load-balancer #web-services #scalability


Stateful Load Balancer

graph TD
    subgraph Users
        U1[User 1]
        U2[User 2]
    end

    subgraph Servers
        S1[Server 1]
        S2[Server 2]
    end

    LB[Stateful 
Load Balancer] U1 -- Session 1 --> LB U2 -- Session 2 --> LB LB -- Session 1 --> S1 LB -- Session 2 --> S2 style LB fill:#f9f,stroke:#333,stroke-width:2px

Stateless Load Balancer

graph TD
    subgraph Users
        U1[User 1]
        U2[User 2]
    end

    subgraph Servers
        S1[Server 1]
        S2[Server 2]
    end

    LB[Stateless 
Load Balancer] U1 --> LB U2 --> LB LB --> S1 LB --> S2 S1 <-- "Session State Sync" --> S2 style LB fill:#ccf,stroke:#333,stroke-width:2px

Share this post

Share on X  •  Share on LinkedIn  •  Share via Email