https://slatedb.io logo
cachey
# general
c
s
Thanks for sharing @criccomini 🙂 I added more context on https://www.reddit.com/r/databasedevelopment/comments/1nh1goo/cachey_a_readthrough_cache_for_s3/
c
Very cool!
@shikhar any plans to implement ObjectStore so we could use it instead of our own?
s
oh interesting,
ObjectStore
is an abstraction interface, and we could implement a cachey impl for it? is this the
object_store
crate?
c
Yup
s
One thing that makes it not super general is we always need the
Range: bytes=start-end
header so we can turn that into pages
c
Was thinking it'd be nice to use the guts of cachey for it.
p
@criccomini When I benchmarked things, foyer hybrid cache appeared a bit slow compared to what slatedb does (I tried to use it as a block cache)
Also removal / overwrite is eventual
c
Oh..
p
Which is a massive footgun to me
c
Hmm that could be tricky then
p
Foyer’s in memory cache is great though
(Yeah, I keep breaking everyone’ stuff 😅)
I am not sure how cachey handles that?
s
I don't think this is a problem for our use case ( or others I imagine using it) because the data read this way is immutable
but maybe worth calling out in the readme
c
https://github.com/apache/arrow-rs-object-store/issues/14 @shikhar (5) in the "more behaviors" section is what I was thinking
p
Perhaps but it turns a immediately consistent s3 implementation to a weak one
It’s not great conceptually
s
Caching already implies EC reads though 🙂 I can see it being not great if also doing negative caching, which it isn't yet
p
It doesn’t have to
What’s expensive most of the time is retrieving the data, not issuing a request to check if things changed
s
aha, I get your drift
for now I will update the README to note this is meant for immutable blobs 🙂
p
Did you benchmark it? I am curious as to throughput numbers, I wonder if I did something wrong or unusual when I tried things around (with foyer)
s
I did do some load testing, on
m*gd.xlarge
(4 CPU). The pods were pushing over a GiBps with 1-2 CPUs used. That is at the point where the bottleneck is network rather than CPU for these machines.
p
If it’s a G (and not a g) it seems pretty nice then
s
yes big B
p
Cool