• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Iasi codecamp 20 april 2013 Caching - oldie but goldie - Raluca Breaur
 

Iasi codecamp 20 april 2013 Caching - oldie but goldie - Raluca Breaur

on

  • 355 views

 

Statistics

Views

Total Views
355
Views on SlideShare
355
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Iasi codecamp 20 april 2013 Caching - oldie but goldie - Raluca Breaur Iasi codecamp 20 april 2013 Caching - oldie but goldie - Raluca Breaur Presentation Transcript

    • CACHINGOldie but GoldieRaluca Breaur20th of April 2013
    • Cache
    • Sourceofdata
    • Advantages
    • “There are only two hard thingsin Computer Science:cache invalidationand naming things.”Phil Karlton
    • Eviction
    • Stale data strategyTime to liveTime to idle
    • Eviction algorithmsLFU – Least Frequently UsedLRU – Least Recently UsedFIFO…
    • Levels of cache
    • Loading
    • HITCACHESOURCEOFDATA
    • MISSCACHESOURCEOFDATA
    • Cache performance - StatisticsHitsMissesSizeAverage GetTimeEviction Count
    • Common Data PatternsLocality Hot Set DatachangesCatalog(Countries) Low Low LowInventory(Stocks) High High HighConversation(Shopping Cart) High High Low
    • Caches around usBrowser cacheUse cache control headers: max age, no cache
    • Database• Persistence Layer – JPA – 2 layers of cache
    • High computationService – Spring 3.1 Cache AbstractionJCache
    • Web Service / 3rd partyMultiple clients - Standalone Cache ServerService – Spring 3.1 Cache Abstraction/JCache
    • Cache Providers - JCACHEjava.util.Map GUAVA caches
    • Questions