Storage Caching Cracking  Presenter: VU CONG THANH Duration: 1h
Agenda <ul><li>Introduction  (5minutes) </li></ul><ul><li>Architecture  (15 minutes) </li></ul><ul><li>Caching Factory  (1...
<ul><li>Data  Caching: Defines the Key, Value </li></ul><ul><li>Context  Caching: Caching the ServiceContext (FindById, Co...
CHALLENGES - REVIEWER
ARCHITECTURE
Architecture – Caching Data
CACHING FACTORY METHOD <ul><li>Provide an Caching Factory creation of objects.(eXoCache, FutureETKCache) </li></ul>
CACHING FACTORY METHOD(Cont) <ul><li>Using the CacheService to create the Caching region. </li></ul>Caching region Caching...
CACHING FACTORY METHOD(Cont) <ul><li>Using to create the FutureExoCaching. </li></ul><ul><li>new FutureETKCache<K, V, Serv...
VISITOR <ul><li>Adds the decorator the CachingLoader to the FutureExoCache. </li></ul><ul><li>Invokes the ServiceContext.e...
VISITOR <ul><li>1.  FooCache.get(context, fooKey) </li></ul><ul><li>2.  Loader.accept(context, fooKey) </li></ul><ul><li>3...
CACHING HASHMAP Define Key.Value pair in eXoCache - CacheKey :  Define the key in ExoCache - CacheData:  Define the data i...
CASE STYDY: FindFooById
CACHING HASHMAP Define Key.Value pair in eXoCache - CacheKey :  Define the key in ExoCache - CacheData:  Define the data i...
DEMO CACHING STORAGE
Q&A
Upcoming SlideShare
Loading in …5
×

Storage caching for Developers

387 views

Published on

Published in: Technology, Business
1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total views
387
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
5
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide
  • Kind of model what you need? Lacetti: 1.6 EX, 1.8. GENTRA: SX. Spark: VAN, LT, LTA. Vivant: SX, CDX AT.
  • Kind of model what you need? Lacetti: 1.6 EX, 1.8. GENTRA: SX. Spark: VAN, LT, LTA. Vivant: SX, CDX AT.
  • Kind of model what you need? Lacetti: 1.6 EX, 1.8. GENTRA: SX. Spark: VAN, LT, LTA. Vivant: SX, CDX AT.
  • Storage caching for Developers

    1. 1. Storage Caching Cracking Presenter: VU CONG THANH Duration: 1h
    2. 2. Agenda <ul><li>Introduction (5minutes) </li></ul><ul><li>Architecture (15 minutes) </li></ul><ul><li>Caching Factory (10 minutes) </li></ul><ul><li>Caching HashMap (10 minutes) </li></ul><ul><li>Demo (15 minutes) </li></ul><ul><li>Q&A (5 minutes) </li></ul>
    3. 3. <ul><li>Data Caching: Defines the Key, Value </li></ul><ul><li>Context Caching: Caching the ServiceContext (FindById, Count, and Filter) </li></ul><ul><li>Caching Loader: Mechanism which injects to FutureCache </li></ul>SOC-1892 Cache for storage layer. INTRODUCTION
    4. 4. CHALLENGES - REVIEWER
    5. 5. ARCHITECTURE
    6. 6. Architecture – Caching Data
    7. 7. CACHING FACTORY METHOD <ul><li>Provide an Caching Factory creation of objects.(eXoCache, FutureETKCache) </li></ul>
    8. 8. CACHING FACTORY METHOD(Cont) <ul><li>Using the CacheService to create the Caching region. </li></ul>Caching region Caching Map Caching Service management
    9. 9. CACHING FACTORY METHOD(Cont) <ul><li>Using to create the FutureExoCaching. </li></ul><ul><li>new FutureETKCache<K, V, ServiceContext<V>>(new CacheLoaderVisitor<K, V>(), cache) </li></ul>CacheLoader FooFutureCaching CacheFooStorage ExoCache
    10. 10. VISITOR <ul><li>Adds the decorator the CachingLoader to the FutureExoCache. </li></ul><ul><li>Invokes the ServiceContext.execute() method. </li></ul>
    11. 11. VISITOR <ul><li>1. FooCache.get(context, fooKey) </li></ul><ul><li>2. Loader.accept(context, fooKey) </li></ul><ul><li>3. fooStorageImpl.findFooById(fooId) </li></ul><ul><li>FindFooById scenario </li></ul><ul><li>CachedFooStorage class </li></ul>
    12. 12. CACHING HASHMAP Define Key.Value pair in eXoCache - CacheKey : Define the key in ExoCache - CacheData: Define the data in ExoCahe
    13. 13. CASE STYDY: FindFooById
    14. 14. CACHING HASHMAP Define Key.Value pair in eXoCache - CacheKey : Define the key in ExoCache - CacheData: Define the data in ExoCahe
    15. 15. DEMO CACHING STORAGE
    16. 16. Q&A

    ×