Initial commit

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
master
Tuan-Dat Tran 2024-11-08 21:38:45 +01:00
commit 591ea50d82
3 changed files with 2054 additions and 0 deletions

File diff suppressed because one or more lines are too long

1025
aoi_cache_simulation.ipynb Normal file

File diff suppressed because one or more lines are too long

24
note.md Normal file
View File

@ -0,0 +1,24 @@
System Design
Client -> TTL Cache -> Database
Capacity C
TTL increases on cache hit
Age of information / Age of the entry in the cache
Database has latest object, cache entry may be old (we don't know)
Age of entry should have low age of information
Update function from cache to refresh based on mu (refresh rate)
Loss function based on TTL and age in cache called beta(i)
Event based simulation
lambda(i) is zipf distribution describing the rate the client requests the object "i"
Inter arrival time of each object => exponential
We need
Hit rate and the average age of the object based on TTL and
C = n (example: 100)