Your SlideShare is downloading. ×
Iasi codecamp 20 april 2013 Caching - oldie but goldie - Raluca Breaur
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

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

167
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
167
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

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