摘要: 一致性哈希(consistenthash) 什么是一致性哈希 在分布式缓存中,假设我们有3台缓存服务器,我们有三万张图片要缓存数据要分配到这三台服务器上,常见的做法就是哈希,用图片名对服务器的个数取模,根据取模结果分配,这样就可以分配的很均匀。但是,如果3台机器不够,要加机器呢?这时候,机器数变了, 阅读全文
posted @ 2022-08-11 01:26 博客是个啥? 阅读(41) 评论(0) 推荐(0) 编辑
摘要: go build 的plugin模式 -buildmode=plugin ​ Build the listed main packages, plus all packages that they ​ import, into a Go plugin. Packages not named main 阅读全文
posted @ 2022-08-11 01:20 博客是个啥? 阅读(285) 评论(0) 推荐(0) 编辑