lonng / nano

Lightweight, facility, high performance golang based game server framework
MIT License
2.88k stars 445 forks source link

expose remote service route for user custom #93

Closed lacorey closed 1 year ago

lacorey commented 1 year ago

What problem does this PR solve?

in cluster mode, framework rpc remote service is randmom, user can't control the rule. so expose remote service route for user custom, it's useful for remote service shardding and support same service node expand horizontal.

What is changed and how it works?

exist multiple same remote service node, gate distribution rpc request can use user specify remoteAddr.

Check List

Tests has a example in examples/customerroute

Side effects

Related changes