Tagged articles
4 articles
Page 1 of 1
macrozheng
macrozheng
Oct 31, 2023 · Backend Development

Mastering Nginx Session Affinity: How ip_hash Ensures Sticky Sessions

This article explains how Nginx's ip_hash directive implements session affinity by routing all requests from the same client IP to a single backend server, provides configuration examples, discusses practical pitfalls, and shares real‑world test results.

BackendIP HashNginx
0 likes · 9 min read
Mastering Nginx Session Affinity: How ip_hash Ensures Sticky Sessions
Architect
Architect
Sep 30, 2023 · Backend Development

Mastering Nginx ip_hash for Session Affinity and Its Common Pitfalls

This article explains how Nginx's ip_hash directive implements session affinity by routing all requests from the same client IP to a single backend server, demonstrates configuration examples, analyzes behavior when servers go down, and discusses the method's limitations such as load imbalance and dynamic IP issues.

BackendConfigurationIP Hash
0 likes · 11 min read
Mastering Nginx ip_hash for Session Affinity and Its Common Pitfalls
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 17, 2018 · Backend Development

Session Sharing Solutions in Distributed Environments

This article explains the concept of web sessions, the consistency challenges that arise in distributed server clusters, and evaluates four common solutions—session replication, session affinity, cookie‑based sessions, and dedicated session servers—detailing their use cases, advantages, and drawbacks.

Distributed SystemsSessionsession replication
0 likes · 6 min read
Session Sharing Solutions in Distributed Environments