SlideShare une entreprise Scribd logo
1  sur  21
1
Analysis of Caching and
Replication Strategies for Web
Applications
Presented By
Sudarsan Maddi
Graduate Student
Authors:
Swaminathan Sivasubramaniam,
Guillaume Pierre,
Maarten van Steen.
Analysis of Caching and Replication
Strategies for Web Applications 2
Topics That We Will be Seeing…
 Introduction
 Techniques to scale Web applications
 Performance Analysis
 Choosing the Right Strategy
Analysis of Caching and Replication
Strategies for Web Applications 3
Introduction
 In this paper the authors present qualitative
and quantitative analysis of replication and
caching techniques to host Web applications.
 Their analysis shows that selecting the best
mechanism depends heavily on data
workload and application characteristics.
Analysis of Caching and Replication
Strategies for Web Applications 4
Introduction
 Web sites are slow dew to many reasons,
one of the main reason is dynamic generation
of web documents.
 Web page caching: Fragments of HTML
pages the application generates are cached
to serve future requests.
 Content-delivery networks such as Akamai do
this by deploying edge servers around the
Internet thus reducing request’s network
latency.
Analysis of Caching and Replication
Strategies for Web Applications 5
Introduction
 Limitations of page caching have given raise
to different approaches for scalable Web
applications, classified broadly into:
 Application code replication
 Cache database records
 Cache query results
 Entire Database replication
 In this article they have given overview of
various scalable techniques compared and
analyzed their features and performance.
Analysis of Caching and Replication
Strategies for Web Applications 6
Techniques to scale Web Applications
 The techniques we are going to see are
 Edge Computing
 Data Replication
 Content-Aware data Caching (CAC)
 Content-Blind data Caching (CBC)
Techniques to Scale Web Applications 7
Edge Computing
 In this the application code is replicated at
multiple edge servers and data is centralized.
 Akamai and ACDN use this technique.
 The data centralization create problems,
 If the edge servers are located worldwide, each data
access incurs WAN latency.
 The central database becomes a performance
bottleneck if the load increases.
Techniques to Scale Web Applications 8
Data Replication
 Solution for Edge computing is to place the
data at each edge server.
 Database replication (REPL) techniques can
help maintaining identical copies at multiple
locations.
Continued…
Techniques to Scale Web Applications 9
Data Replication
 The problem with this is when there is a
database update.
 This creates huge network traffic and
performance overhead.
Techniques to Scale Web Applications 10
Content-Aware data Caching (CAC)
 Instead of maintaining full copies of database CAC
systems cache database query results as the
application code issues them.
 Query Containment Check: The application running
at the edge-server issues a query, the local
database checks if it has enough data to answer the
query locally.
 Containment check results positive query is present
locally, else its sent to central database and inserts
the result in its local database.
Continued…
Analysis of Caching and Replication
Strategies for Web Applications 11
An Example of CAC
 CAC store query results efficiently
 For example:
Query Q1: Select* from items where price<50
Query Q2: Select* from items where price<20
 Query template QT1:
“Select* from items where price<”
Techniques to Scale Web Applications 12
Content-Aware data Caching (CAC)
 This query containment check is highly
computationally expensive because it must
check the new query with all previously
cached queries.
 In order to reduce this cost CAC makes use
of query template, which is a parameterized
SQL query whose parameter values are
parse at runtime
 In, CAC systems update queries is always
executed at the central database.
Techniques to Scale Web Applications 13
Content-Blind data Caching (CBC)
 Here, edge servers don’t need to run a
database at all.
 Instead they store the results of remote
database queries independently.
 The query results aren't merged here storing
redundant information, and will have a hit
only if application issues exact query, so hit
rates are low
Continued….
Techniques to Scale Web Applications 14
Content-Blind data Caching (CBC)
 This have some advantages over CAC as,
 Incurs very little computational load.
 Caching query results as result sets instead of database
records, so can return results immediately.
 Finally, inserting a new element into the cache doesn't
require a query rewrite.
15
Scalable Web hosting.
(a) edge computing, (b) content-aware caching,
(c) content-blind caching, and (d) data replication.
Analysis of Caching and Replication
Strategies for Web Applications 16
Performance Analysis
 To compare the four techniques, they have
made use of two different applications,
 RUBBoS, a bulletin-board benchmark application that
models Slashdot.org,
http://jmob.objectweb.org/rubbos.html
 TPC-W, an industry-standard e-commerce benchmark
that models an online book store such as Amazon.com,
http://pgfoundry.org/projects/tpc-w-php/
Analysis of Caching and Replication
Strategies for Web Applications 17
Performance Analysis
 They have measured the end-to-end client
latency, which is the sum of network latency
and internal latency.
 The results shows that CBC performed best
in terms of client latency whereas EC
performed the worst for RUBBoS.
 Were as for TPC-W REPL performed the best
and EC worst again.
Analysis of Caching and Replication
Strategies for Web Applications 18
Performance Results
(a) RUBBoS benchmark
(b) TPC-W Browsing
(c) TPC-W Ordering
Analysis of Caching and Raeplication
Strategies for Web Applications 19
Choosing the Right Strategy
 According to the author the Web designers should
choose the scalable technique by carefully
analyzing their Web application characteristics.
 They have suggested the best strategy is the one
that minimizes the applications end-to-end client
latency.
 This latency is affected by many parameters as hit
ratio, database query execution time, application
server execution time.
 To do this they have proposed a concept called
virtual caches (VC).
Continued…
Analysis of Caching and Raeplication
Strategies for Web Applications 20
Choosing the Right Strategy
 VC behaves just like a real cache but it stores
only meta data, such as the list of objects in
the cache, sizes. So this requires less
memory compared to real caches.
 So with the help of these VC we can get the
hit ratios and execution times for servers and
can estimate end-to-end latency.
Analysis of Caching and Replication
Strategies for Web Applications 21
Thank You.

Contenu connexe

Similaire à short presentation on caching Caching.ppt

AWSQ: an approximated web server queuing algorithm for heterogeneous web serv...
AWSQ: an approximated web server queuing algorithm for heterogeneous web serv...AWSQ: an approximated web server queuing algorithm for heterogeneous web serv...
AWSQ: an approximated web server queuing algorithm for heterogeneous web serv...
IJECEIAES
 
LOAD BALANCING ALGORITHMS
LOAD BALANCING ALGORITHMSLOAD BALANCING ALGORITHMS
LOAD BALANCING ALGORITHMS
tanmayshah95
 
Client-side web acceleration for low-bandwidth hosts
Client-side web acceleration for low-bandwidth hostsClient-side web acceleration for low-bandwidth hosts
Client-side web acceleration for low-bandwidth hosts
Zhenyun Zhuang
 

Similaire à short presentation on caching Caching.ppt (20)

Scalable analytics for iaas cloud availability
Scalable analytics for iaas cloud availabilityScalable analytics for iaas cloud availability
Scalable analytics for iaas cloud availability
 
AWSQ: an approximated web server queuing algorithm for heterogeneous web serv...
AWSQ: an approximated web server queuing algorithm for heterogeneous web serv...AWSQ: an approximated web server queuing algorithm for heterogeneous web serv...
AWSQ: an approximated web server queuing algorithm for heterogeneous web serv...
 
A Study on Replication and Failover Cluster to Maximize System Uptime
A Study on Replication and Failover Cluster to Maximize System UptimeA Study on Replication and Failover Cluster to Maximize System Uptime
A Study on Replication and Failover Cluster to Maximize System Uptime
 
LOAD BALANCING ALGORITHMS
LOAD BALANCING ALGORITHMSLOAD BALANCING ALGORITHMS
LOAD BALANCING ALGORITHMS
 
Tech Talk: Leverage the combined power of CA Unified Infrastructure Managemen...
Tech Talk: Leverage the combined power of CA Unified Infrastructure Managemen...Tech Talk: Leverage the combined power of CA Unified Infrastructure Managemen...
Tech Talk: Leverage the combined power of CA Unified Infrastructure Managemen...
 
A Proposed Model for Web Proxy Caching Techniques to Improve Computer Network...
A Proposed Model for Web Proxy Caching Techniques to Improve Computer Network...A Proposed Model for Web Proxy Caching Techniques to Improve Computer Network...
A Proposed Model for Web Proxy Caching Techniques to Improve Computer Network...
 
Automatic scaling of web applications for cloud computing services
Automatic scaling of web applications for cloud computing servicesAutomatic scaling of web applications for cloud computing services
Automatic scaling of web applications for cloud computing services
 
Grds conferences icst and icbelsh (10)
Grds conferences icst and icbelsh (10)Grds conferences icst and icbelsh (10)
Grds conferences icst and icbelsh (10)
 
load speed problems of web resources on the client side classification and ...
 load speed problems of web resources on the client side  classification and ... load speed problems of web resources on the client side  classification and ...
load speed problems of web resources on the client side classification and ...
 
Scalable analytics for iaas cloud availability
Scalable analytics for iaas cloud availabilityScalable analytics for iaas cloud availability
Scalable analytics for iaas cloud availability
 
Website Performance at Client Level
Website Performance at Client LevelWebsite Performance at Client Level
Website Performance at Client Level
 
Node Summit 2016: Web App Architectures
Node Summit 2016:  Web App ArchitecturesNode Summit 2016:  Web App Architectures
Node Summit 2016: Web App Architectures
 
IRJET- Big Data Processes and Analysis using Hadoop Framework
IRJET- Big Data Processes and Analysis using Hadoop FrameworkIRJET- Big Data Processes and Analysis using Hadoop Framework
IRJET- Big Data Processes and Analysis using Hadoop Framework
 
Oracle Coherence: in-memory datagrid
Oracle Coherence: in-memory datagridOracle Coherence: in-memory datagrid
Oracle Coherence: in-memory datagrid
 
VMworld 2013: How to Replace Websphere Application Server (WAS) with TCserver
VMworld 2013: How to Replace Websphere Application Server (WAS) with TCserver VMworld 2013: How to Replace Websphere Application Server (WAS) with TCserver
VMworld 2013: How to Replace Websphere Application Server (WAS) with TCserver
 
2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...
2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...
2014 IEEE DOTNET CLOUD COMPUTING PROJECT Automatic scaling of internet applic...
 
IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...
IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...
IEEE 2014 DOTNET CLOUD COMPUTING PROJECTS Automatic scaling of internet appli...
 
Using Grid Technologies in the Cloud for High Scalability
Using Grid Technologies in the Cloud for High ScalabilityUsing Grid Technologies in the Cloud for High Scalability
Using Grid Technologies in the Cloud for High Scalability
 
Client-side web acceleration for low-bandwidth hosts
Client-side web acceleration for low-bandwidth hostsClient-side web acceleration for low-bandwidth hosts
Client-side web acceleration for low-bandwidth hosts
 
ArcGIS Server System Architecture Memo
ArcGIS Server System Architecture MemoArcGIS Server System Architecture Memo
ArcGIS Server System Architecture Memo
 

Dernier

如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
zifhagzkk
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
jk0tkvfv
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
pwgnohujw
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
yulianti213969
 
Jual Obat Aborsi Lhokseumawe ( Asli No.1 ) 088980685493 Obat Penggugur Kandun...
Jual Obat Aborsi Lhokseumawe ( Asli No.1 ) 088980685493 Obat Penggugur Kandun...Jual Obat Aborsi Lhokseumawe ( Asli No.1 ) 088980685493 Obat Penggugur Kandun...
Jual Obat Aborsi Lhokseumawe ( Asli No.1 ) 088980685493 Obat Penggugur Kandun...
Obat Aborsi 088980685493 Jual Obat Aborsi
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Klinik kandungan
 
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Valters Lauzums
 
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样
yhavx
 

Dernier (20)

如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
 
Jual Obat Aborsi Lhokseumawe ( Asli No.1 ) 088980685493 Obat Penggugur Kandun...
Jual Obat Aborsi Lhokseumawe ( Asli No.1 ) 088980685493 Obat Penggugur Kandun...Jual Obat Aborsi Lhokseumawe ( Asli No.1 ) 088980685493 Obat Penggugur Kandun...
Jual Obat Aborsi Lhokseumawe ( Asli No.1 ) 088980685493 Obat Penggugur Kandun...
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
 
Formulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfFormulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdf
 
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI  MANAJEMEN OF PENYAKIT TETANUS.pptMATERI  MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
 
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
 
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样
一比一原版(Monash毕业证书)莫纳什大学毕业证原件一模一样
 
What is Insertion Sort. Its basic information
What is Insertion Sort. Its basic informationWhat is Insertion Sort. Its basic information
What is Insertion Sort. Its basic information
 
Chapter 1 - Introduction to Data Mining Concepts and Techniques.pptx
Chapter 1 - Introduction to Data Mining Concepts and Techniques.pptxChapter 1 - Introduction to Data Mining Concepts and Techniques.pptx
Chapter 1 - Introduction to Data Mining Concepts and Techniques.pptx
 
Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"
 

short presentation on caching Caching.ppt

  • 1. 1 Analysis of Caching and Replication Strategies for Web Applications Presented By Sudarsan Maddi Graduate Student Authors: Swaminathan Sivasubramaniam, Guillaume Pierre, Maarten van Steen.
  • 2. Analysis of Caching and Replication Strategies for Web Applications 2 Topics That We Will be Seeing…  Introduction  Techniques to scale Web applications  Performance Analysis  Choosing the Right Strategy
  • 3. Analysis of Caching and Replication Strategies for Web Applications 3 Introduction  In this paper the authors present qualitative and quantitative analysis of replication and caching techniques to host Web applications.  Their analysis shows that selecting the best mechanism depends heavily on data workload and application characteristics.
  • 4. Analysis of Caching and Replication Strategies for Web Applications 4 Introduction  Web sites are slow dew to many reasons, one of the main reason is dynamic generation of web documents.  Web page caching: Fragments of HTML pages the application generates are cached to serve future requests.  Content-delivery networks such as Akamai do this by deploying edge servers around the Internet thus reducing request’s network latency.
  • 5. Analysis of Caching and Replication Strategies for Web Applications 5 Introduction  Limitations of page caching have given raise to different approaches for scalable Web applications, classified broadly into:  Application code replication  Cache database records  Cache query results  Entire Database replication  In this article they have given overview of various scalable techniques compared and analyzed their features and performance.
  • 6. Analysis of Caching and Replication Strategies for Web Applications 6 Techniques to scale Web Applications  The techniques we are going to see are  Edge Computing  Data Replication  Content-Aware data Caching (CAC)  Content-Blind data Caching (CBC)
  • 7. Techniques to Scale Web Applications 7 Edge Computing  In this the application code is replicated at multiple edge servers and data is centralized.  Akamai and ACDN use this technique.  The data centralization create problems,  If the edge servers are located worldwide, each data access incurs WAN latency.  The central database becomes a performance bottleneck if the load increases.
  • 8. Techniques to Scale Web Applications 8 Data Replication  Solution for Edge computing is to place the data at each edge server.  Database replication (REPL) techniques can help maintaining identical copies at multiple locations. Continued…
  • 9. Techniques to Scale Web Applications 9 Data Replication  The problem with this is when there is a database update.  This creates huge network traffic and performance overhead.
  • 10. Techniques to Scale Web Applications 10 Content-Aware data Caching (CAC)  Instead of maintaining full copies of database CAC systems cache database query results as the application code issues them.  Query Containment Check: The application running at the edge-server issues a query, the local database checks if it has enough data to answer the query locally.  Containment check results positive query is present locally, else its sent to central database and inserts the result in its local database. Continued…
  • 11. Analysis of Caching and Replication Strategies for Web Applications 11 An Example of CAC  CAC store query results efficiently  For example: Query Q1: Select* from items where price<50 Query Q2: Select* from items where price<20  Query template QT1: “Select* from items where price<”
  • 12. Techniques to Scale Web Applications 12 Content-Aware data Caching (CAC)  This query containment check is highly computationally expensive because it must check the new query with all previously cached queries.  In order to reduce this cost CAC makes use of query template, which is a parameterized SQL query whose parameter values are parse at runtime  In, CAC systems update queries is always executed at the central database.
  • 13. Techniques to Scale Web Applications 13 Content-Blind data Caching (CBC)  Here, edge servers don’t need to run a database at all.  Instead they store the results of remote database queries independently.  The query results aren't merged here storing redundant information, and will have a hit only if application issues exact query, so hit rates are low Continued….
  • 14. Techniques to Scale Web Applications 14 Content-Blind data Caching (CBC)  This have some advantages over CAC as,  Incurs very little computational load.  Caching query results as result sets instead of database records, so can return results immediately.  Finally, inserting a new element into the cache doesn't require a query rewrite.
  • 15. 15 Scalable Web hosting. (a) edge computing, (b) content-aware caching, (c) content-blind caching, and (d) data replication.
  • 16. Analysis of Caching and Replication Strategies for Web Applications 16 Performance Analysis  To compare the four techniques, they have made use of two different applications,  RUBBoS, a bulletin-board benchmark application that models Slashdot.org, http://jmob.objectweb.org/rubbos.html  TPC-W, an industry-standard e-commerce benchmark that models an online book store such as Amazon.com, http://pgfoundry.org/projects/tpc-w-php/
  • 17. Analysis of Caching and Replication Strategies for Web Applications 17 Performance Analysis  They have measured the end-to-end client latency, which is the sum of network latency and internal latency.  The results shows that CBC performed best in terms of client latency whereas EC performed the worst for RUBBoS.  Were as for TPC-W REPL performed the best and EC worst again.
  • 18. Analysis of Caching and Replication Strategies for Web Applications 18 Performance Results (a) RUBBoS benchmark (b) TPC-W Browsing (c) TPC-W Ordering
  • 19. Analysis of Caching and Raeplication Strategies for Web Applications 19 Choosing the Right Strategy  According to the author the Web designers should choose the scalable technique by carefully analyzing their Web application characteristics.  They have suggested the best strategy is the one that minimizes the applications end-to-end client latency.  This latency is affected by many parameters as hit ratio, database query execution time, application server execution time.  To do this they have proposed a concept called virtual caches (VC). Continued…
  • 20. Analysis of Caching and Raeplication Strategies for Web Applications 20 Choosing the Right Strategy  VC behaves just like a real cache but it stores only meta data, such as the list of objects in the cache, sizes. So this requires less memory compared to real caches.  So with the help of these VC we can get the hit ratios and execution times for servers and can estimate end-to-end latency.
  • 21. Analysis of Caching and Replication Strategies for Web Applications 21 Thank You.