rpcx
rpcx copied to clipboard
Best microservices framework in Go, like alibaba Dubbo, but with more features, Scale easily. Try it. Test it. If you feel it's better, use it! 𝐉𝐚𝐯𝐚有𝐝𝐮𝐛𝐛𝐨, 𝐆𝐨𝐥𝐚𝐧𝐠有𝐫𝐩𝐜𝐱! build for cloud!
由于 context.WithValue 修改了context树 `locker, ok := ctx.(sync.Locker)` 这里的ok永远都是false
修复interface判空问题。这里采用断言方式判断map是否为空,没有采用方式反射判断。
watch() many goroutine sort the single slice at the same time. it has a concurrent problem. and there is no need to sort the pairs, we should delete the sort...
查看了源码,发现心跳机制只是检测连接是否关闭,并没有触发重连 ;如果服务端某个时间段异常再恢复时,客户端要在调用服务端方法的时候才会触发重连。在双向通信时,如果客户端一直没有调用服务端的方法,服务端还在往客户端吐数据,这时候客户端是收不到数据的,因为此时客户端并未与服务端连接。
事情是这样的, 我打算把Http Handler, jsonrpc, rcpx 均采用统一的接口格式. 这样可以专注编写service层, Http Handler, jsonrpc 这俩个我们都可以做到哪些导出给这些协议,哪些不导出.但是rpcx暂时需要接口支持.
dubbo 3.0 已经改用应用级别了,感觉确实会比接口级别的好些。 大多数服务颗粒不会细到只有几个接口,那每次服务的上下线就会有一批的接口注册或者退出。 然后有些系统微服务化进程也是慢慢缩小服务的颗粒,初始颗粒可能还是很粗的。
在Server Plugin中,预定义了很多Plugin ```go type ( // RegisterPlugin is . RegisterPlugin interface { Register(name string, rcvr interface{}, metadata string) error Unregister(name string) error } // RegisterFunctionPlugin is . RegisterFunctionPlugin interface {...
如果你是rpcx用户,欢迎你添加留言。