Exploring Caching in Web Applications
I’ve been exploring the topic of caching in web applications lately. To be more specific, I’ve been interested on how data gets cached for better performance; especially when you’re performing really expensive queries. Maybe you’re returning a bunch of results and want to cache those results so you don’t have to request data from your database constantly.
Use Cases for Caching
- If you’re consuming an external API, you can cache the results for a certain period of time without making a request to that API every time the page loads.
- You’re application constantly hits your database and tries to retrieve data. If you’re in this situation, you can cache the results on your page so you don’t have to query the database every time.
I made a video covering what I’m going to go over in the next could videos and blog posts. I want to experiment with a situation where I have a lot of data in the database and I have a feed where it’s constantly delivering data. I want to cache this data so I can minimize queries to MySQL or Postgres. I think this will be a fun little experiment. 🙂 I’m planning to collect some data and put it visual form; making this look all professional. 😉
Anyway, here’s the video:
Update on Vlog
I’m still working on the vlog. I’m feeling kind of “meh” about it and I want to feel inspired when I’m working on it. I don’t want to put out crappy work. However, I am still releasing that as soon as that’s finished.