摘要: First created: 2021-02-12 21:00 https://medium.com/i0exception/rendezvous-hashing-8c00e2fb58b0 Consistent Hashing In consistent hashing, both the keys 阅读全文
posted @ 2021-02-13 13:02 YBgnAW 阅读(66) 评论(0) 推荐(0) 编辑
摘要: First Created: 2021-01-23 23:10 A read-heavy system (compared to write) Main Functions 1. Users are able to post tweet(text, image, video) 2. Users ar 阅读全文
posted @ 2021-01-24 15:12 YBgnAW 阅读(146) 评论(0) 推荐(0) 编辑
摘要: First Created: 2021/01/23 13:37 Uber https://eng.uber.com/real-time-push-platform/ Cassandra is a durable and cross region replicated storage. ZooKeep 阅读全文
posted @ 2021-01-24 06:38 YBgnAW 阅读(28) 评论(0) 推荐(0) 编辑
摘要: First created 2021年01月18日21:50 A system with Write heavy & Read heavy, Transisent data ttl can be short Requirements: Drivers: tell the service the re 阅读全文
posted @ 2021-01-19 13:55 YBgnAW 阅读(90) 评论(0) 推荐(0) 编辑
摘要: First created: 2020-01-19 22:30 DynamoDB supports two types of primary keys: Partition key: A simple primary key, composed of one attribute known as t 阅读全文
posted @ 2021-01-19 10:16 YBgnAW 阅读(71) 评论(0) 推荐(0) 编辑
摘要: First created 2021年01月17日 A system with Read heavy/Write little placeId 8 bytes name 256 bytes latitude 4 bytes longtitude 4 bytes category 1 byte des 阅读全文
posted @ 2021-01-18 16:08 YBgnAW 阅读(334) 评论(0) 推荐(0) 编辑
摘要: Garbage Collector of JAVA NOTES Reference video https://www.bilibili.com/video/BV11Z4y1G7wg?p=11 malloc free (C) new delete (C++) new (Java) 自动内存回收 编程 阅读全文
posted @ 2021-01-12 13:55 YBgnAW 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 20200413 LightGBM 目前已有的 GBDT 工具基本都是基于预排序的方法(pre-sorted)的决策树算法(如 xgboost)。这种构建决策树的算法基本思想是: 首先,对所有特征都按照特征的数值进行预排序。其次,在遍历分割点的时候用O(#data)的代价找到一个特征上的最好分割点。 阅读全文
posted @ 2020-04-14 11:36 YBgnAW 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 单例模式最初的定义出现于《设计模式》(艾迪生维斯理, 1994):“保证一个类仅有一个实例,并提供一个访问它的全局访问点。” Java中单例模式定义:“一个类有且仅有一个实例,并且自行实例化向整个系统提供。” 特点: 1、单例类只能有一个实例。 2、单例类必须自己创建自己的唯一实例。 3、单例类必须 阅读全文
posted @ 2020-03-23 10:03 YBgnAW 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 2020-03-15 Spring4.3中引进了{@GetMapping、@PostMapping、@PutMapping、@DeleteMapping、@PatchMapping},来帮助简化常用的HTTP方法的映射,并更好地表达被注解方法的语义。 @RequestMapping如果没有指定请求方 阅读全文
posted @ 2020-03-16 13:42 YBgnAW 阅读(161) 评论(0) 推荐(0) 编辑