I am one of those people who function better by writing things down. One day, I realized that most of my notes don’t have to be private, so here they are - my second brain. Be warned that, if you stumble upon something here that doesn’t make sense to you, it isn’t meant to!
Cache strategies
Data flow is: application -> cache -> database (i.e. cache sits in between the application and the database). There are 3 strategies: Write through: write to both in parallel. Write around: database only. Write back: cache only. It basically depends on whether, during a write, the application writes to the underlying database, cache or both.