spring-cloud / spring-cloud/spring-cloud-gateway

Question: Sticky session in routes with load balancer

Open
#1,176 13 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement waiting for votes
Dominant language
Java
Stars
4.9k
Forks
3.5k
Avg merge
20h 57m
Merged PRs (30d)
8

Description

Question/Enhancement:
Is there any plans to support sticky session for the load-balanced routes?

Currently, I found out the way how to do it via override LoadBalancerClientFilter and create custom "sticky" ribbon rule.

But I wonder maybe there are any plans to do it "out of the box"?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with LoadBalancerClientFilter and the custom sticky Ribbon rule described in the issue to understand how load-balanced routes currently select instances. The issue asks whether sticky sessions should be supported out of the box, so completion would require a decided design and corresponding implementation scope; no specific file or test is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.