Apply Cache For Beginner #1      charsyam@naver.com
Key Value   and  KEY        Value  User_ID   Profile            - LastLoginTime            - UserName            - ETC
Key Value   and   1. Check Cache Server -> Read Cache         2. Read DB -> Write Cache
Key Value – Easy to Read    and   1. Check Cache Server -> Read Cache          2. Read DB -> Write Cache
Key Value – Hard to Update    and           1. Update To DB          2. Update to Cache
What is Hard?
Key Value – SYNC Easy            and  Fail!!!            1. Update To DB                  2. Fail To Transaction
Key Value – SYNC HARD            and                   1. Update To DB  Fail!!!         2. Update to Cache
Key Value – How           and                     1. Update To DB Fail!!!            2. Update to Cache                 RE...
Data!The most important thing
If data is not important        Cache Updating is not important              Login Count            Last Login Time       ...
BUT!
If data is important        Cache Updating is important             Server Address               Data Path                ...
HOW!
RETRY!Retry, Retry, RetrySolve Over 9x%.
Batch!Queuing Service
Error Log  Queue       BatchError Log   ProcessorError LogError Log               CacheError Log               Server
Error Log  Queue       BatchError Log   ProcessorError Log   Error LogError Log               Cache                       ...
Error Log  Queue       Batch        UPDATEError Log   ProcessorError LogError Log                Cache                    ...
GEARMANBEANSTALKD
Thank you!
Upcoming SlideShare
Loading in …5
×

Apply cache for beginner#1

745 views
681 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
745
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Apply cache for beginner#1

  1. 1. Apply Cache For Beginner #1 charsyam@naver.com
  2. 2. Key Value and KEY Value User_ID Profile - LastLoginTime - UserName - ETC
  3. 3. Key Value and 1. Check Cache Server -> Read Cache 2. Read DB -> Write Cache
  4. 4. Key Value – Easy to Read and 1. Check Cache Server -> Read Cache 2. Read DB -> Write Cache
  5. 5. Key Value – Hard to Update and 1. Update To DB 2. Update to Cache
  6. 6. What is Hard?
  7. 7. Key Value – SYNC Easy and Fail!!! 1. Update To DB 2. Fail To Transaction
  8. 8. Key Value – SYNC HARD and 1. Update To DB Fail!!! 2. Update to Cache
  9. 9. Key Value – How and 1. Update To DB Fail!!! 2. Update to Cache RETRY BATCH
  10. 10. Data!The most important thing
  11. 11. If data is not important Cache Updating is not important Login Count Last Login Time ETC
  12. 12. BUT!
  13. 13. If data is important Cache Updating is important Server Address Data Path ETC
  14. 14. HOW!
  15. 15. RETRY!Retry, Retry, RetrySolve Over 9x%.
  16. 16. Batch!Queuing Service
  17. 17. Error Log Queue BatchError Log ProcessorError LogError Log CacheError Log Server
  18. 18. Error Log Queue BatchError Log ProcessorError Log Error LogError Log Cache Server
  19. 19. Error Log Queue Batch UPDATEError Log ProcessorError LogError Log Cache Server Error Log
  20. 20. GEARMANBEANSTALKD
  21. 21. Thank you!

×