上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
摘要: why rpc 单体应用业务复杂, 大集群部署时对数据库的连接是个考验, 维护这个应用也比较费劲(一群人维护,容易代码冲突) 拆分后 各服务之间的接口依赖不能使用httpClient来搞,一是效率太低,二是不稳定,容易出错, 因此开发一个RPC框架来支撑服务依赖 netty在RPC框架中的作用主要是 阅读全文
posted @ 2019-07-17 23:08 funny_coding 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 连接错误,不安全 并不是hsts的锅 chrome://net-internals/#hsts, 大部分原因还是证书的问题 [NET::ERR_CERT_COMMON_NAME_INVALID](https://support.google.com/chrome/a/answer/7391219?h 阅读全文
posted @ 2019-07-15 14:30 funny_coding 阅读(1261) 评论(0) 推荐(0) 编辑
摘要: org.apache.http.NoHttpResponseException 主要原因server端连接已经关闭, client没有接收到关闭的通知 httpClient 4.4中setStaleConnectionCheckEnabled默认变成false了, 之前的版本默认是true 换jar 阅读全文
posted @ 2019-07-09 19:51 funny_coding 阅读(6740) 评论(0) 推荐(0) 编辑
摘要: 加了this. 就很容易看出来是使用了内部类和{}代码块 当然也可以把this去掉, 更简洁, 只是不能一眼看出来怎么初始化的 类似的可以做ArrayList ....的初始化 阅读全文
posted @ 2019-07-08 18:21 funny_coding 阅读(853) 评论(0) 推荐(0) 编辑
摘要: 基本原理 搜索引擎的索引 倒排序 由value查找key 数据库的索引 由key查找value 用于解决分库分表后的排序分页 like查找 性能问题 日志库的全文搜索 spring集成时使用的不是rest api, 而是jar https://spring.io/projects/spring da 阅读全文
posted @ 2019-07-07 14:20 funny_coding 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 示例 G1的堆是一整个, yong old是不连续的块 最好不要设置 Xmn XX:NewRatio ... 统计算法不同, 显示出来可能yong比old大 XX:NewRatio=3 没有碎片, S0 S1的copy 性能提升不少 参考文档: https://www.oracle.com/tech 阅读全文
posted @ 2019-07-07 11:34 funny_coding 阅读(445) 评论(0) 推荐(0) 编辑
摘要: Promise(onsuccess , on fail) f1.then(f2.then(), f3.then()) java CompletableFuture.thenAccept 阅读全文
posted @ 2019-07-06 19:09 funny_coding 阅读(794) 评论(0) 推荐(0) 编辑
摘要: 不写serialVersionUID就没有吗 即使不写, jdk反序列化时也会自动检查这个id, 反编译.class文件你也看不到这个值 rpc反序列化 如果使用jdk的方式, 这个必须配置 如果使用 hession, json string... 不是必须的 如果增加兼容的字段, serialVe 阅读全文
posted @ 2019-07-03 11:06 funny_coding 阅读(2615) 评论(1) 推荐(0) 编辑
摘要: 在原始表中 新加一个临时列 去重, 排序 比多次join性能提高很多 http://www.mysqltutorial.org/mysql window functions/mysql row_number function/ 阅读全文
posted @ 2019-07-01 20:31 funny_coding 阅读(1632) 评论(0) 推荐(0) 编辑
摘要: Ubuntu sudo apt-get install openjdk-8-jdk 默认提示是 sudo apt-get install openjdk-8-jre, 这个只有jre Centos yum search openjdk yum -y install java-1.8.0-openjd 阅读全文
posted @ 2019-06-30 15:00 funny_coding 阅读(3544) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
build beautiful things, share happiness