[Enhancement] Add a load balance strategy: source ip hash
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 658
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 52
Description
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
### Enhancement Request
Add a load balance strategy: source ip hash. Make the request from the same machine always arrive at the same server.
### Describe the solution you'd like
Add a new LoadBalanceSelector for implementing source ip hash algorithm.
Add unit test for new LoadBalanceSelector.
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
Contributor guide
Research direction
Search the project for existing LoadBalanceSelector implementations and their unit tests, then read how the selector receives request source information. Add coverage for the new source-IP hash selector, with tests showing that requests from the same source are consistently routed to the same server.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, distributed-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100