Introducing Ristretto: A High-Performance Go Cache
https://blog.dgraph.io/post/introducing-ristretto-high-perf-go-cache/ [blog.dgraph.io]
2019-09-20 18:43
tags:
development
go
hash
perf
release
With over six months of research and development, we’re proud to announce the initial release of Ristretto: A High Performance, Concurrent, Memory-Bound Go cache. It is contention-proof, scales well and provides consistently high hit-ratios.
Interesting read even if only for the links to prior art and research.
source: L
The State of Caching in Go
https://blog.dgraph.io/post/caching-in-go/ [blog.dgraph.io]
2019-03-10 19:25
tags:
benchmark
concurrency
go
library
perf
In particular, Go lacks a concurrent LRU (or LFU) cache which can scale well enough to be a process-global cache. In this blog post, I will take you through the various attempts at workarounds that are typically advocated, including some which we have executed and learnt from within Dgraph. Aman will then present the design, performance and hit ratio comparison for the existing popular cache implementations in the Go ecosystem.
source: HN