SlideShare a Scribd company logo
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


                 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       Batch
Error Log   Processor
Error Log
Error Log               Cache
Error Log               Server
Error Log
  Queue       Batch
Error Log   Processor
Error Log   Error Log
Error Log               Cache
                        Server
Error Log
  Queue       Batch        UPDATE
Error Log   Processor
Error Log
Error Log                Cache
                         Server
                        Error Log
GEARMAN
BEANSTALKD
Thank you!

More Related Content

PDF
Meta Refresh 2014
PDF
Metarefresh
PDF
Scaling a Web Service
PDF
From One to a Cluster
PDF
Phorum MySQL tricks
PPTX
Wordcamp2009
PPTX
Website performance optimization QA
KEY
Web Optimization Level: Paranoid
Meta Refresh 2014
Metarefresh
Scaling a Web Service
From One to a Cluster
Phorum MySQL tricks
Wordcamp2009
Website performance optimization QA
Web Optimization Level: Paranoid

What's hot (17)

PDF
WordCamp RVA 2011 - Performance & Tuning
PDF
Reintroducing Web Technology
PPTX
How to make your site 5 times faster in 10 minutes
PPTX
Fluent 2012 v2
PPTX
Presentation1
PPTX
PHP Performance with APC + Memcached
PDF
Server modeling with mysql
PDF
Zingme practice for building scalable website with PHP
PDF
Client-side Website Optimization
PDF
High Performance - Joomla!Days NL 2009 #jd09nl
PDF
Php & web server performace
PPTX
Powerhsell dsc for chef veterans
PDF
Architectures For Scaling Ajax
PDF
21 Ways to Make WordPress Fast
PDF
WordCamp RVA
PDF
CouchDB Talk JChris NYC
PDF
Cache hcm-topdev
WordCamp RVA 2011 - Performance & Tuning
Reintroducing Web Technology
How to make your site 5 times faster in 10 minutes
Fluent 2012 v2
Presentation1
PHP Performance with APC + Memcached
Server modeling with mysql
Zingme practice for building scalable website with PHP
Client-side Website Optimization
High Performance - Joomla!Days NL 2009 #jd09nl
Php & web server performace
Powerhsell dsc for chef veterans
Architectures For Scaling Ajax
21 Ways to Make WordPress Fast
WordCamp RVA
CouchDB Talk JChris NYC
Cache hcm-topdev
Ad

Viewers also liked (6)

PDF
Hide method
PDF
The story about cache
PDF
Libcloud
PDF
PDF
Cell architecture
PDF
Redis dict and_rehash
Hide method
The story about cache
Libcloud
Cell architecture
Redis dict and_rehash
Ad

Similar to Apply cache for beginner#1 (20)

PDF
초보자를 위한 분산 캐시 이야기
PDF
Random 111203223949-phpapp02
PDF
Performance Whack-a-Mole Tutorial (pgCon 2009)
PDF
WordPress Performance & Scalability
PDF
Wordpress optimization
PDF
ExpertTalks Manchester September 2018
PDF
We're going on a bug hunt! Experts Talk Manchester 2018
PDF
Scale Fail: How I Learned to Love the Downtime
PDF
The Anatomy of Failure - Lessons from running systems to serve millions of pe...
PPTX
Sql server backup internals
PDF
From Web Acceleration to Content Delivery with Varnish - Howest Brugge 2024
PDF
vSphere APIs for performance monitoring
PPTX
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
PPTX
Tidal scale short_story_v2
PDF
Performance Whack A Mole
PPTX
Top 5 T-SQL Improvements in SQL Server 2014
PDF
When RSS Fails: Web Scraping with HTTP
ODP
MNPHP Scalable Architecture 101 - Feb 3 2011
PPT
Roy foubister (hosting high traffic sites on a tight budget)
PDF
Reliable Data Replication by Cameron Morgan
초보자를 위한 분산 캐시 이야기
Random 111203223949-phpapp02
Performance Whack-a-Mole Tutorial (pgCon 2009)
WordPress Performance & Scalability
Wordpress optimization
ExpertTalks Manchester September 2018
We're going on a bug hunt! Experts Talk Manchester 2018
Scale Fail: How I Learned to Love the Downtime
The Anatomy of Failure - Lessons from running systems to serve millions of pe...
Sql server backup internals
From Web Acceleration to Content Delivery with Varnish - Howest Brugge 2024
vSphere APIs for performance monitoring
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
Tidal scale short_story_v2
Performance Whack A Mole
Top 5 T-SQL Improvements in SQL Server 2014
When RSS Fails: Web Scraping with HTTP
MNPHP Scalable Architecture 101 - Feb 3 2011
Roy foubister (hosting high traffic sites on a tight budget)
Reliable Data Replication by Cameron Morgan

More from DaeMyung Kang (20)

PPTX
Count min sketch
PDF
PDF
Ansible
PDF
Why GUID is needed
PDF
How to use redis well
PPTX
The easiest consistent hashing
PDF
How to name a cache key
PDF
Integration between Filebeat and logstash
PDF
How to build massive service for advance
PDF
Massive service basic
PDF
Data Engineering 101
PDF
How To Become Better Engineer
PPTX
Kafka timestamp offset_final
PPTX
Kafka timestamp offset
PPTX
Data pipeline and data lake
PDF
Redis acl
PDF
Coffee store
PDF
Scalable webservice
PDF
Number system
PDF
webservice scaling for newbie
Count min sketch
Ansible
Why GUID is needed
How to use redis well
The easiest consistent hashing
How to name a cache key
Integration between Filebeat and logstash
How to build massive service for advance
Massive service basic
Data Engineering 101
How To Become Better Engineer
Kafka timestamp offset_final
Kafka timestamp offset
Data pipeline and data lake
Redis acl
Coffee store
Scalable webservice
Number system
webservice scaling for newbie

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
sap open course for s4hana steps from ECC to s4
PPT
Teaching material agriculture food technology
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
A Presentation on Artificial Intelligence
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
sap open course for s4hana steps from ECC to s4
Teaching material agriculture food technology
Assigned Numbers - 2025 - Bluetooth® Document
Reach Out and Touch Someone: Haptics and Empathic Computing
Chapter 3 Spatial Domain Image Processing.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
The AUB Centre for AI in Media Proposal.docx
Empathic Computing: Creating Shared Understanding
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
MYSQL Presentation for SQL database connectivity
Diabetes mellitus diagnosis method based random forest with bat algorithm
Mobile App Security Testing_ A Comprehensive Guide.pdf
Big Data Technologies - Introduction.pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
A Presentation on Artificial Intelligence
Spectral efficient network and resource selection model in 5G networks
20250228 LYD VKU AI Blended-Learning.pptx

Apply cache for beginner#1