apply cache for beginner#1
DESCRIPTION
TRANSCRIPT
Apply Cache For Beginner #1
Key and Value
KEY
User_ID
Value Profile - LastLoginTime - UserName - ETC
Key and Value 1. Check Cache Server -> Read Cache
2. Read DB -> Write Cache
Key and Value – Easy to Read
1. Check Cache Server -> Read Cache
2. Read DB -> Write Cache
Key and Value – Hard to Update
1. Update To DB
2. Update to Cache
What is Hard?
Key and Value – SYNC Easy
1. Update To DB
2. Fail To Transaction
Fail!!!
Key and Value – SYNC HARD
1. Update To DB
2. Update to Cache Fail!!!
Key and Value – How
1. Update To DB
2. Update to Cache Fail!!!
RETRY BATCH
Data! The most important thing
If data is not important
Cache Updating is not important
Login Count
Last Login Time
ETC
BUT!
If data is important
Cache Updating is important
Server Address
Data Path
ETC
HOW!
RETRY! Retry, Retry, Retry Solve Over 9x%.
Batch! Queuing Service
Error Log Queue
Error Log
Error Log
Error Log
Error Log
Batch Processor
Cache Server
Error Log Queue
Error Log
Error Log
Error Log
Error Log
Batch Processor
Cache Server
Error Log Queue
Error Log
Error Log
Error Log
Error Log
Batch Processor
Cache Server
UPDATE
GEARMAN BEANSTALKD
Thank you!