
RR 379: "Caching in Rails" with Jeff Kreeftmeijer
Panel:
Charles Max Wood
Dave Kimura
Eric Berry
Special Guests: Jeff Kreeftmeijer
In this episode of Ruby Rogues, the panel talks to Jeff Kreeftmeijer who is a Ruby and Elixir developer at AppSignal. Jeff writes for the AppSignal's newsletter and has a blog. Check out today’s episode where the panel talks about AppSignal, Russian doll caching, Drifting Ruby, JavaScript Sprinkles, cache warming, N+1 plus other topics.
Show Topics:
2:47 – Code Fund & New Relic.
3:40 – AppSignal might be the only support for Elixir.
4:46 – Comparatively to New Relic, AppSignal is cheaper, isn’t it?
4:59 – We don’t charge for host, we charge per request. That’s where to difference in price comes from. You get a number of requests in your plan. AppSignal – you pay for what you use.
6:48 – Eric to Dave: Do you run into this with Drifting Ruby? Where people just pay for what they need and cancel afterwards.
8:24 – Jeff: We don’t have a lot of this problem with AppSignal. By the way, I have never done that before – you are all horrible! ☺
11:02 – Chuck: Most of these posts are about caching and other topics. I’m going to go to something that I misunderstood for a while and that is Russian doll caching. I didn’t quite make the connection in my head.
13:49 – Jeff explains Russian doll caching.
22:00 – Jeff: Another solution is JavaScript Sprinkles.
23:55 – Panelist has had experience with Russian doll caching. Performance can be smoke in mirrors. Application he worked on before, we did tons of caching (query caching, Russian doll caching, and others) it was all about handling the cache key.
25:32 – More comments about caching from another panelist. Cache warming is mentioned, too.
26:46 – How do you utilize cache warming?
28:12 – Does something like this exist for Phoenix?
28:28 – Jeff: I don’t think there is something like that for Phoenix.
29:09 – Jeff: “Depends on a couple of things. N+1 is a feature and that you “should” rely on Russian doll caching, and generally that is not an accepted thing. You could do that, but that is applied to a specific thing. What do you guys think?”
1.) Navvy – had adapters for everything.
2.) Dropping support for older visions of your dependencies.
3.) Hand over projects if you can’t help anymore.
This whole article is based on me messing up.
37:02 – N+1 Queries – is it a bug or a feature?
37:42 – Jeff: N+1 is an undesirable feature? It’s not necessarily a bug. You need a very reliable caching layer.
40:50 – Redis is mentioned.
42:57 – Advertisement: Chuck’s E-Book Course
Links:
Get a Coder Job Course
Ruby
JavaScript
Phoenix
AppSignal
Russian doll caching
JavaScript Sprinkles.
Cache Warming
N+1 Query
Redis
Fragment Caching in Rails
Fuubar
Navvy
AsciiDoc Home Page
AsciiDoctor
Elixir Mix – Meet Me.So
New Relic
Elixir
Jeff Kreeftmeijer’s Website
Jeff Kreeftmeijer’s Twitter
Jeff Kreeftmeijer’s GitHub
Jeff Kreeftmeijer’s AppSignal Blog
Jeff Kreeftmeijer’s article, “Keeping open source...”
Rails
Bootsnap
Sponsors:
Sentry
Digital Ocean
Get a Coder Job Course
Picks:
Charles
Notion.so
Traveller’s Gift by Andy Andrews
The Shack by William Paul Young
Dave
Drift Ruby Episode – Renderer
Tool – Scroll Saw
Eric
Skitch – screen capture tool – free product
Library by MERT / eggplanetio by Brian Gonzalez
Jeff
AsciiDoctor
AsciiDoc Home Page
Performance in Rails – Interview
Episodes play from the podcast's own servers, unmodified. Not affiliated with Podbay.
