Open xiangtianyu opened 1 year ago
need to investigate the use of id in java,is it necessary?
Previous discussions: https://github.com/alibaba/Sentinel/pull/2853
1: Maybe we can use the json.Number as the id type, compatible with older versions. 2: Implements logSlot to print logs
not only id, the flow block threshold count in java sdk names "count", but in golang, it names "threshold". These difference makes me difficult to do compatible between java and golang
java and go will not be exactly the same,you can forget java and reconfigure according to golang
In golang sdk the flow rule id is changed from uint64 to string, but the java sdk is still "Long".
So when i tried to use nacos store the rule and shared it to both my java app and golang app, it will report
Fail to convert source bytes to []*flow.Rule, err: json: cannot unmarshal number into Go struct field Rule.id of type stringExiting
How can i handle this situation.