V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  cyhone  ›  全部回复第 1 页 / 共 3 页
回复总数  54
1  2  3  
122 天前
回复了 cyhone 创建的主题 Go 编程语言 剖析 Golang Bigcache 的极致性能优化
@maypok86 Your perspective on posing the question is excellent. Evaluating a cache library based on cache hit rate is indeed more practical than simply looking at insertion and retrieval performance.

From the information you've listed, it seems you have a very deep understanding of cache libraries, which I greatly admire.

However, I believe that bigcache is not as entirely useless as you suggest. At least in the following aspects:

* In performance-sensitive scenarios, we need multi-level caching, and a local cache can help us reduce a lot of network IO requests. Redis cannot completely replace bigcache.
* In scenarios where a lot of data needs to be cached, this is where bigcache excels. Has Otter tested the maximum data load it can handle and the query performance at high data volumes? I am very interested in this as well.
* There are also many scenarios where the content of the cache is directly in the form of []byte.

Thank you very much for your comment; I have learned a lot. Your response has made me very interested in these three open-source libraries (RTO). I will take the time to study Otter and may ask you some related questions in the issues~
123 天前
回复了 cyhone 创建的主题 Go 编程语言 剖析 Golang Bigcache 的极致性能优化
@qloog 感谢推荐,我研究下~
157 天前
回复了 chenalex 创建的主题 Chrome chrome macos 全屏后无法点击
@sumuu 我的是 macbook M1 Pro, chrome 版本 118.0.5993.96 全屏已经没问题了
160 天前
回复了 chenalex 创建的主题 Chrome chrome macos 全屏后无法点击
早上 chrome 又有了新版本,更新下就好了。


版本:118.0.5993.96
161 天前
回复了 cyhone 创建的主题 Go 编程语言 Golang 限流器 time/rate 实现剖析
@54qyc 👍🏻
161 天前
回复了 chenalex 创建的主题 Chrome chrome macos 全屏后无法点击
今天更新到新版本之后,同遇到这个问题
2021-06-18 17:44:18 +08:00
回复了 cyhone 创建的主题 Go 编程语言 一个 Gin 缓存中间件的设计与实现
@xkeyideal 明白了~ 我研究下这里,之后应该会一个更好的方案替代这个库。
2021-06-18 17:20:09 +08:00
回复了 cyhone 创建的主题 Go 编程语言 一个 Gin 缓存中间件的设计与实现
@meshell 是的,这些信息需要提供给 cache middleware 。但目前自定义 cache 策略中,暂时只支持生成 cache key, 以及是否要进行 cache 。缓存时间目前沿用了 api 默认的缓存时间,暂不支持每个请求自定义,不过这个 case 感觉可以加一下~
2021-06-18 16:54:04 +08:00
回复了 cyhone 创建的主题 Go 编程语言 一个 Gin 缓存中间件的设计与实现
@xkeyideal 感谢反馈此库的问题。但需要说明的两点是:
1. 并不是 fork 了此库。而是使用了该库作为内置的 inmemory 实现,是属于依赖而非 fork 关系。
2. 如果觉得内置方案有问题,是可以替换为其他的自己的方案的。只要实现 persist.CacheStore 就可以

此外,感谢反馈,我先研究下这个库的问题。同时已将该贴下沉了一天~
2021-06-18 16:30:22 +08:00
回复了 cyhone 创建的主题 Go 编程语言 一个 Gin 缓存中间件的设计与实现
@meshell 好问题。gin-cache 提供了两个快捷函数,CacheByPath 和 CacheByUri,如果用户的信息(比如 uid)就在 url 中,直接使用这两个函数就行。

如果需要从其他地方获取用户的唯一信息(例如 header 、body ),gin-cache 也支持用户自定义 KeyGenerator,这样可以自行写函数,根据不同请求,生成不同的 cache key
2021-02-22 10:13:40 +08:00
回复了 cyhone 创建的主题 程序员 一致性 Hash 原理及 GroupCache 源码分析
原文链接: https://www.cyhone.com/articles/consistent-hash-of-groupcache/
欢迎关注公众号:编程沉思录
2021-02-05 10:09:16 +08:00
回复了 cyhone 创建的主题 Go 编程语言 Golang sync.Cond 条件变量源码分析
原文链接: https://www.cyhone.com/articles/golang-sync-cond/
欢迎关注公众号:编程沉思录
2021-01-18 10:12:49 +08:00
回复了 cyhone 创建的主题 Go 编程语言 Golang WaitGroup 原理深度剖析
原文链接: https://www.cyhone.com/articles/golang-waitgroup/
欢迎关注公众号:编程沉思录
2020-08-20 19:03:41 +08:00
回复了 cyhone 创建的主题 服务器 muduo 源码剖析
2020-08-16 10:45:40 +08:00
回复了 cyhone 创建的主题 Go 编程语言 Facebook 对 Golang 依赖注入的实现
原文链接: https://www.cyhone.com/articles/facebookgo-inject/
欢迎关注公众号:编程沉思录
2020-06-19 20:30:25 +08:00
回复了 cyhone 创建的主题 Go 编程语言 Golang 定时器底层实现深度剖析
2020-06-19 20:30:14 +08:00
回复了 cyhone 创建的主题 Go 编程语言 Golang 定时器底层实现深度剖析
发布完才发现,已经不能编辑了。各位老哥凑合看:
2020-04-03 19:42:40 +08:00
回复了 monkeyWie 创建的主题 程序员 技术博客真就套娃啊
我还遇到过,照搬博客不算,还在文章中间插了段文字广告,也是没谁了
2020-03-13 11:47:05 +08:00
回复了 cyhone 创建的主题 Elasticsearch Elasticsearch 学习:入门篇
@cornetCat 抱歉,我对客户端这块的搜索不是很熟悉。不过客户端的搜索一般都会做的比较轻量些
1  2  3  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5447 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms · UTC 01:32 · PVG 09:32 · LAX 18:32 · JFK 21:32
Developed with CodeLauncher
♥ Do have faith in what you're doing.