A photo of Brian Douglas

Hi, I'm Brian. Welcome to my blog. Here I write about the things I've learned whilst creating stuff on the web.

I hope that you will find something noteworthy here, that will pique your interest, and that you will visit again soon.

Recent Posts


  • Request cache in Spring

    Let's say we have a request that fetches a post stored in the database. That request may need to alter the fetched post in some way. Before the post is altered various checks may need to happen, such as an ownership check. But we want to avoid each check fetching the same post from the database. This is when a cache that is scoped to a request's life cycle comes in handy.

Older Posts