Home > Back-end > Spring Cloud Ribbon custom load balancing strategy of how to get the current Http request object?
Spring Cloud Ribbon custom load balancing strategy of how to get the current Http request object?
Time:09-20
As title, I'm a custom load balancing strategy, think through the content of the Http request to determine which service instance call, what can I do in the strategy for the current Http request object?
CodePudding user response:
By requesting the IP do hash, the same IP assigned to a server, can keep the session