#solidcache
I deployed #solidcache into production today. In the past I've asked around about what kind of performance people had been seeing and gotten back nothing, so, a quick thread about my experience, and a subtle gotcha to avoid if pre-warming/transferring.

#ruby #rails
January 30, 2025 at 5:08 AM
What surprised me though was that the 5GB I copied only used ~ 2.25GB of DB Storage in SolidCache.

Dug into the source a bit, and the SolidCache Store is doing some compression that the RedisCacheStore is not.

So we're looking at effectively 10x the size.
January 30, 2025 at 5:19 AM
In a recent article published by BigBinary's software engineer Sandip Mane, they benchmarked different caching solutions for #Rails, comparing #Redis with alternatives like #Valkey, #DragonflyDB, #DiceDB, and SolidCache using PostgreSQL and SQLite3.
February 19, 2025 at 10:13 AM
It's Rack::Attack first loading SolidCache: gist.github.com/pushcx/eadbe...
May 1, 2025 at 3:22 PM
SolidCache with PostgreSQL started as the slowest option but improved significantly with tuning. SolidCache with SQLite3 performed on par with Redis for reads and surpassed PostgreSQL in write speeds.
February 19, 2025 at 10:13 AM
あ、おれさっさとSolidCache試すべきなんか。
February 27, 2024 at 1:40 AM
Hi there! One more brownbag is coming!

Join Nehama in her presentation "How To Cache Using Solid Cache on Rails" at 13:10 BRT

Click on the link so you don't miss out!

bit.ly/4o5YcoC

#codeminer42 #brownbag #solidcache
July 24, 2025 at 1:02 PM
But I expect most people with use this configured with an external cache store such as SolidCache, Litestack or Redis. Though it’s very unlikely the round trip to Redis will ever be faster than rendering uncached.
February 2, 2025 at 6:33 PM
Excited, I deployed to prod (while keeping the old cache store in place), copied ~ 4M cache entries from Redis over into SolidCache and ran my read tests again, but this time against a much beefier db.m6gd.2xlarge cluster - *with* directly attached storage.
January 30, 2025 at 5:19 AM
次はThrusterとSolidQueue / SolidCacheをいれる
December 1, 2024 at 1:00 AM
Wanted to say thank you! I am doing this exact task this week (moving day job's cache from Redis to SolidCache) and this was such a helpful post. Thanks, again!
February 4, 2025 at 10:43 PM
Most of the PR activity is leaning into Rails 8: SolidCache for rate-limiting, adding SolidQueue for bg jobs, Kamal for dev/mayyyybe deploy, Propshaft to drop node from assets. Basically all of github.com/lobsters/lob... ! Stream's now 1h from now.
January 6, 2025 at 6:51 PM
Reads were even closer, in some tests SolidCache was actually faster, but I'm sure I was overwhelming that little Redis server. I averaged 2.5ms reading 1k keys one at a time from SolidCache - which would do fine.
January 30, 2025 at 5:19 AM
Main changes are reduced external service dependencies through built-in #SolidQueue, #SolidCable, and #SolidCache; deployment now defaults to Kamal v2 (with #Docker 🙌); and a built-in #authentication framework.

Also move towards using SQLite in production.

rubyonrails.org/2024/11/7/ra...
Rails 8.0: No PaaS Required
Deploying modern web apps – with all the provisions needed to be fast and secure while easily updateable – has become so hard that many developers don’t dare do it without a PaaS (platform-as-a-servic...
rubyonrails.org
November 13, 2024 at 4:35 PM
Now the gotcha. I pre-warmed SolidCache in a very naive manner - just get keys from redis with SCAN, read the values for those keys out of the redis store with `read_multi` and write them out to the solid cache store with `write_multi`
January 30, 2025 at 5:19 AM
As expected, better hardware is faster. The prod Redis cache pulled 1k keys averaging 0.528ms per key (while also serving prod requests), SolidCache in 0.752ms per key.

Seems SolidCache is plenty fast for web applications.
January 30, 2025 at 5:19 AM
That same contributor also opened two more PRs, woo!
github.com/lobsters/lob... allows email replies to mentions/comments, great. Minor fixes and weirdly, the build didn't run?
github.com/lobsters/lob... is Rails 8 setup moving to SolidCache. Teeny changes. No build again. Hm.
December 31, 2024 at 5:04 PM
It has been super fun to build and experiment with all the new Rails 8 stuff. And I haven't even gotten into any SolidQueue or SolidCache stuff yet!
November 25, 2024 at 4:13 PM
Could anyone who runs Rails with sqlite in prod share some scale numbers like r/w per second, # rows in the db, and vps size? I have used it at trivial scale for SolidQueue and SolidCache, but I can't find experience reports for the primary OLTP db.
April 28, 2025 at 10:06 AM