Caching, Replication, Indexes, Data Partitioning

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/6

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:52 AM on 9/2/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

7 Terms

1
New cards

What is caching?

A cache is fast storage holding a copy of something expensive to produce. Check the cache first; on a miss, do the expensive thing and put the result in the cache for next time.

2
New cards

Places where caching happens

  • In the browser, so the request never leaves the device.

  • At the CDN, so it never reaches your data center.

  • At the API gateway, so it never reaches a service.

  • In the application, in memory or in Redis or Memcached, so it never reaches the database.

  • Inside the database, which keeps hot pages in memory on its own.


3
New cards

The hard part of caching is…

The hard part of caching is never the reading. It is deciding what happens when the underlying data changes, and how the cache and the database are kept consistent with each other.

4
New cards

How do we avoid doing the same work twice?

Cache

5
New cards

When to skip cache?

Write-heavy, low read repetition

6
New cards

One way to improve latency is…

Cache. A cache is a small fast store that keeps ready-made answers. A hit skips the slow work entirely.


7
New cards