Where Is My Cache? Architectural Patterns for Caching Microservices

Where Is My Cache? Architectural Patterns for Caching Microservices

I’m sure you use caching somewhere in your system. This can be either to improve performance, reduce backend load, or to decrease downtime. Everybody uses caching. Caching is everywhere. However, in which part of your system should it be placed? If you look at the following diagram representing a simple microservice architecture, where would you draw the “cache” rectangle?