Caching

What is caching?

Real world example

Types of caching

In Memory/Local Cache

Distributed Cache/Internal Cache

When to use caching?

Types of caching we are storing in our project

Cache Eviction

Cache Eviction Techniques

LRU (Least Recently Used) Eviction

LFU (Least Frequently Used) Eviction

FIFO (First In First Out) Eviction

MRU(Most Recently Used) Eviction

LFU (Least Frequently Used) Eviction

LIFO (Last In First Out) Eviction

RR (Random Replacement) Eviction

Cache Invalidation

Cache Invalidation Techniques

Time To Live (TTL)

Write Through

Write Back

Cache Consistency

Cache Consistency Techniques

Write Through

Write Back

File Based Storage System

What is File Based Storage System?

When to use File Based Storage System?

Types of File Based Storage System

Local File System

Distributed File System

Challenges in File Based Storage System

Database

RDBMS

Advantages of RDBMS

Disadvantages of RDBMS

NoSQL

Types of NoSQL

Examples

Polyglot Persistance

graph TD;
X("<img src='https://raw.githubusercontent.com/shubham21155102/Archieve/main/System_Design/psql.png'; width='50' />"<br><br>Postgre SQL)
Y("<img src='https://raw.githubusercontent.com/shubham21155102/Archieve/main/System_Design/cassandral.png'; width='75' />"<br><br>Cassendra)
Z("<img src='https://raw.githubusercontent.com/shubham21155102/Archieve/main/System_Design/mong.webp'; width='70' />"<br><br>Mongo DB)
W("<img src='https://raw.githubusercontent.com/shubham21155102/Archieve/main/System_Design/redis.png'; width='70' />" <br><br>Redis DB)


graph TD;
A[Ecommerce Platform]-->B[Shopping Cart<br> & <br> Session Data]-->C[Key Valued DB]-->W("<img src='https://raw.githubusercontent.com/shubham21155102/Archieve/main/System_Design/redis.png'; width='70' />"<br><br>Redis DB)
A-->D[Completed Order]-->E[Document DB]-->Z("<img src='https://raw.githubusercontent.com/shubham21155102/Archieve/main/System_Design/mong.webp'; width='70' />"<br><br>Mongo DB)
A-->F[Inventory <br>&<br>Item Price]-->G[RDBMS<br>Legacy DB]-->X("<img src='https://raw.githubusercontent.com/shubham21155102/Archieve/main/System_Design/psql.png'; width='50' />"<br><br>PostgreSQL)
A-->H[Customer <br>Social Graph]-->I[Graph DB]-->CC("<img src='https://raw.githubusercontent.com/shubham21155102/Archieve/main/System_Design/neo4j.svg'; width='80' />"<br><br>Neo4j Graph DB)