摘要: duubo如何使用cache的?CacheFilterclass里面有,这个filter既可以在provider也可以在consumerif (cacheFactory != null && ConfigUtils.isNotEmpty(invoker.getUrl().getMethodParam 阅读全文
posted @ 2018-12-15 21:49 notlate 阅读(2156) 评论(0) 推荐(0) 编辑
摘要: 序列化的操作就是:1 变成JavaBeanAccessor对象。 2 把value值塞进去 3通过IdentityHashMap(普通hashmap可以通过equals方法刷新掉,IdentityHashMap用内存地址作为key)对已经序列化好的描述符缓存起来复用 变成JavaBeanAccess 阅读全文
posted @ 2018-12-09 20:36 notlate 阅读(727) 评论(0) 推荐(0) 编辑
摘要: 前面提到过,重试是靠ClusterInvoker来保证的,不同的Cluster在调用失败的时候 做不同处理 比如默认的FailoverClusterInvoke的doInvoke方法里面:int len = getUrl().getMethodParameter(invocation.getMeth 阅读全文
posted @ 2018-12-09 13:24 notlate 阅读(878) 评论(0) 推荐(0) 编辑
摘要: zk是比较典型场景,所以注册中心都是以zk作为例子的 1 对于registry,提供者没有这个,消费者才有。为什么? 因为只有消费者才需要去注册中心拿到provide的信息,而provider是不需要关注的,provider只需要去注册就好。在RegistryProtocol的export方法中,可 阅读全文
posted @ 2018-12-08 19:46 notlate 阅读(1375) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-10-22 00:05 notlate 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-10-21 19:39 notlate 阅读(126) 评论(0) 推荐(0) 编辑