SlideShare ist ein Scribd-Unternehmen logo
Moving towards 100k Orders Version 1.0
Data layer
Cache options
Problems to solve
1 Read heavy workloads
Bottlenecks on Read Replicas
2 RR scaling limitations
RR Cost implications
3 Slow / unoptimized queries
4 Unavailability
- Standard cache layer
- Architecture patterns like
Circuit Breaker
There are only two hard things in Computer
Science: cache invalidation and naming things.
https://martinfowler.com/bliki/TwoHardThings.html
● TTLs
○ Volatile-lru / volatile-ttl
● 245,000 RPS with R5.xLarge @ 100
connections
● 238,000 RPS @800 connections
● Atomic Operations
Cache Layer
Universal truth!
● Messaging Queues / Pub-Sub model
● Native Sorting! (Sorted Sets)
● Lists
● 500MB objects
● Single Threaded
https://d0.awsstatic.com/whitepapers/performance-at-scale-with-amazon-elasticache.pdf
Caching Strategies
Write-through
Synchronous Updates
Lazy Loading
Check cache, if empty then fill
Write Behind
Write in Cache first
Read Replica
Copy via Enterprise Bus
Other Solutions
● Purpose built Databases
● S3 + CloudFront as cache for LLOs
● Perfectly optimized SQL queries
● GraphQL
https://aws.amazon.com/getting-started/hands-on/purpose-built-databases/

Weitere ähnliche Inhalte

Was ist angesagt?

Ruby,no sql and tokyocabinet
Ruby,no sql and tokyocabinetRuby,no sql and tokyocabinet
Ruby,no sql and tokyocabinet
biaowei zhuang
 
Gems in the python standard library
Gems in the python standard libraryGems in the python standard library
Gems in the python standard library
jasonscheirer
 
Nosql databases for the .net developer
Nosql databases for the .net developerNosql databases for the .net developer
Nosql databases for the .net developer
Jesus Rodriguez
 

Was ist angesagt? (20)

In-memory database
In-memory databaseIn-memory database
In-memory database
 
Inside tempdb
Inside tempdbInside tempdb
Inside tempdb
 
No sql
No sqlNo sql
No sql
 
Ruby,no sql and tokyocabinet
Ruby,no sql and tokyocabinetRuby,no sql and tokyocabinet
Ruby,no sql and tokyocabinet
 
Caffe + H2O - By Cyprien noel
Caffe + H2O - By Cyprien noelCaffe + H2O - By Cyprien noel
Caffe + H2O - By Cyprien noel
 
NoSQL
NoSQLNoSQL
NoSQL
 
The TileDB Array Data Storage Manager - Stavros Papadopoulos, Jake Bolewski
The TileDB Array Data Storage Manager - Stavros Papadopoulos, Jake BolewskiThe TileDB Array Data Storage Manager - Stavros Papadopoulos, Jake Bolewski
The TileDB Array Data Storage Manager - Stavros Papadopoulos, Jake Bolewski
 
RocksDB storage engine for MySQL and MongoDB
RocksDB storage engine for MySQL and MongoDBRocksDB storage engine for MySQL and MongoDB
RocksDB storage engine for MySQL and MongoDB
 
Gems in the python standard library
Gems in the python standard libraryGems in the python standard library
Gems in the python standard library
 
MongoDB Datacenter Awareness (mongosf2012)
MongoDB Datacenter Awareness (mongosf2012)MongoDB Datacenter Awareness (mongosf2012)
MongoDB Datacenter Awareness (mongosf2012)
 
SystemML - Datapalooza Denver - 05.17.16 MWD
SystemML - Datapalooza Denver - 05.17.16 MWDSystemML - Datapalooza Denver - 05.17.16 MWD
SystemML - Datapalooza Denver - 05.17.16 MWD
 
Firebird Scalability, by Dmitry Yemanov (in English)
Firebird Scalability, by Dmitry Yemanov (in English)Firebird Scalability, by Dmitry Yemanov (in English)
Firebird Scalability, by Dmitry Yemanov (in English)
 
Graph basedrdf storeforapachecassandra
Graph basedrdf storeforapachecassandraGraph basedrdf storeforapachecassandra
Graph basedrdf storeforapachecassandra
 
Four NoSQL Databases You Should Know
Four NoSQL Databases You Should KnowFour NoSQL Databases You Should Know
Four NoSQL Databases You Should Know
 
Migrating from MySQL to MongoDB
Migrating from MySQL to MongoDBMigrating from MySQL to MongoDB
Migrating from MySQL to MongoDB
 
Nosql databases for the .net developer
Nosql databases for the .net developerNosql databases for the .net developer
Nosql databases for the .net developer
 
Web scale monitoring
Web scale monitoringWeb scale monitoring
Web scale monitoring
 
Optimizing columnar stores
Optimizing columnar storesOptimizing columnar stores
Optimizing columnar stores
 
SOLR Power FTW: short version
SOLR Power FTW: short versionSOLR Power FTW: short version
SOLR Power FTW: short version
 
NoSQL
NoSQLNoSQL
NoSQL
 

Ähnlich wie Cache options for Data Layer

SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...
SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...
SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...
Chester Chen
 
TRACK D: A breakthrough in logic design drastically improving performances fr...
TRACK D: A breakthrough in logic design drastically improving performances fr...TRACK D: A breakthrough in logic design drastically improving performances fr...
TRACK D: A breakthrough in logic design drastically improving performances fr...
chiportal
 
MapReduce Improvements in MapR Hadoop
MapReduce Improvements in MapR HadoopMapReduce Improvements in MapR Hadoop
MapReduce Improvements in MapR Hadoop
abord
 

Ähnlich wie Cache options for Data Layer (20)

Amazon Aurora TechConnect
Amazon Aurora TechConnect Amazon Aurora TechConnect
Amazon Aurora TechConnect
 
SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...
SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...
SF Big Analytics & SF Machine Learning Meetup: Machine Learning at the Limit ...
 
Low Level CPU Performance Profiling Examples
Low Level CPU Performance Profiling ExamplesLow Level CPU Performance Profiling Examples
Low Level CPU Performance Profiling Examples
 
Robust and Scalable ETL over Cloud Storage with Apache Spark
Robust and Scalable ETL over Cloud Storage with Apache SparkRobust and Scalable ETL over Cloud Storage with Apache Spark
Robust and Scalable ETL over Cloud Storage with Apache Spark
 
RDFox Poster
RDFox PosterRDFox Poster
RDFox Poster
 
Alluxio - Scalable Filesystem Metadata Services
Alluxio - Scalable Filesystem Metadata ServicesAlluxio - Scalable Filesystem Metadata Services
Alluxio - Scalable Filesystem Metadata Services
 
CPU Caches
CPU CachesCPU Caches
CPU Caches
 
Fast Data at Scale - AWS Summit Tel Aviv 2017
Fast Data at Scale - AWS Summit Tel Aviv 2017Fast Data at Scale - AWS Summit Tel Aviv 2017
Fast Data at Scale - AWS Summit Tel Aviv 2017
 
Breaking the Memory Wall
Breaking the Memory WallBreaking the Memory Wall
Breaking the Memory Wall
 
TRACK D: A breakthrough in logic design drastically improving performances fr...
TRACK D: A breakthrough in logic design drastically improving performances fr...TRACK D: A breakthrough in logic design drastically improving performances fr...
TRACK D: A breakthrough in logic design drastically improving performances fr...
 
POLARDB: A database architecture for the cloud
POLARDB: A database architecture for the cloudPOLARDB: A database architecture for the cloud
POLARDB: A database architecture for the cloud
 
Shootout at the PAAS Corral
Shootout at the PAAS CorralShootout at the PAAS Corral
Shootout at the PAAS Corral
 
6 open capi_meetup_in_japan_final
6 open capi_meetup_in_japan_final6 open capi_meetup_in_japan_final
6 open capi_meetup_in_japan_final
 
Transactional writes to cloud storage with Eric Liang
Transactional writes to cloud storage with Eric LiangTransactional writes to cloud storage with Eric Liang
Transactional writes to cloud storage with Eric Liang
 
Nosql databases
Nosql databasesNosql databases
Nosql databases
 
Oracle database high availability solutions
Oracle database high availability solutionsOracle database high availability solutions
Oracle database high availability solutions
 
Understanding and building big data Architectures - NoSQL
Understanding and building big data Architectures - NoSQLUnderstanding and building big data Architectures - NoSQL
Understanding and building big data Architectures - NoSQL
 
MapReduce Improvements in MapR Hadoop
MapReduce Improvements in MapR HadoopMapReduce Improvements in MapR Hadoop
MapReduce Improvements in MapR Hadoop
 
GNW01: In-Memory Processing for Databases
GNW01: In-Memory Processing for DatabasesGNW01: In-Memory Processing for Databases
GNW01: In-Memory Processing for Databases
 
Make Oracle scream with Flash Storage - Kaminario
Make Oracle scream with Flash Storage - KaminarioMake Oracle scream with Flash Storage - Kaminario
Make Oracle scream with Flash Storage - Kaminario
 

Mehr von Hussain Mansoor

Mehr von Hussain Mansoor (18)

FAST - Karachi Campus - Cloud Computing Introduction
FAST - Karachi Campus - Cloud Computing IntroductionFAST - Karachi Campus - Cloud Computing Introduction
FAST - Karachi Campus - Cloud Computing Introduction
 
FiresideChat on Serverless Architecture
FiresideChat on Serverless ArchitectureFiresideChat on Serverless Architecture
FiresideChat on Serverless Architecture
 
Serverless Architecture for Beginners - Murdoch Dubai - AWS UG Dubai.pptx
Serverless Architecture for Beginners - Murdoch Dubai - AWS UG Dubai.pptxServerless Architecture for Beginners - Murdoch Dubai - AWS UG Dubai.pptx
Serverless Architecture for Beginners - Murdoch Dubai - AWS UG Dubai.pptx
 
Certification Journey in AWS Cloud
Certification Journey in AWS CloudCertification Journey in AWS Cloud
Certification Journey in AWS Cloud
 
Scale Engineering using Cloud. AWS CommunityDay Pakistan 2021
Scale Engineering using Cloud. AWS CommunityDay Pakistan 2021Scale Engineering using Cloud. AWS CommunityDay Pakistan 2021
Scale Engineering using Cloud. AWS CommunityDay Pakistan 2021
 
Intro to docker - innovation demo 2022
Intro to docker - innovation demo 2022Intro to docker - innovation demo 2022
Intro to docker - innovation demo 2022
 
Design patterns of Distributed Systems
Design patterns of Distributed SystemsDesign patterns of Distributed Systems
Design patterns of Distributed Systems
 
Android developer to tech leadership
Android developer to tech leadershipAndroid developer to tech leadership
Android developer to tech leadership
 
SRE 101 (Site Reliability Engineering)
SRE 101 (Site Reliability Engineering)SRE 101 (Site Reliability Engineering)
SRE 101 (Site Reliability Engineering)
 
Observability and DevOps Improvements
Observability and DevOps ImprovementsObservability and DevOps Improvements
Observability and DevOps Improvements
 
AWS Lambda and Infrastructure as Code
AWS Lambda and Infrastructure as CodeAWS Lambda and Infrastructure as Code
AWS Lambda and Infrastructure as Code
 
Why everyone should go for Masters Degree
Why everyone should go for Masters DegreeWhy everyone should go for Masters Degree
Why everyone should go for Masters Degree
 
Agile101
Agile101Agile101
Agile101
 
DevOps for iOS
DevOps for iOSDevOps for iOS
DevOps for iOS
 
Unit Testing Android Application
Unit Testing Android ApplicationUnit Testing Android Application
Unit Testing Android Application
 
Code quality
Code qualityCode quality
Code quality
 
FAST-NUCES Apps/Games presentation by Husyn 2012
FAST-NUCES Apps/Games presentation by Husyn 2012FAST-NUCES Apps/Games presentation by Husyn 2012
FAST-NUCES Apps/Games presentation by Husyn 2012
 
Maven basics (Android & IntelliJ)
Maven basics (Android & IntelliJ)Maven basics (Android & IntelliJ)
Maven basics (Android & IntelliJ)
 

Kürzlich hochgeladen

ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
Kamal Acharya
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
AbrahamGadissa
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
Atif Razi
 

Kürzlich hochgeladen (20)

Explosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdfExplosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdf
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdf
 
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and VisualizationKIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
fundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projectionfundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projection
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
 
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxThe Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGBRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfRESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringKIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 

Cache options for Data Layer

  • 1. Moving towards 100k Orders Version 1.0 Data layer Cache options
  • 2. Problems to solve 1 Read heavy workloads Bottlenecks on Read Replicas 2 RR scaling limitations RR Cost implications 3 Slow / unoptimized queries 4 Unavailability - Standard cache layer - Architecture patterns like Circuit Breaker
  • 3. There are only two hard things in Computer Science: cache invalidation and naming things. https://martinfowler.com/bliki/TwoHardThings.html
  • 4. ● TTLs ○ Volatile-lru / volatile-ttl ● 245,000 RPS with R5.xLarge @ 100 connections ● 238,000 RPS @800 connections ● Atomic Operations Cache Layer Universal truth! ● Messaging Queues / Pub-Sub model ● Native Sorting! (Sorted Sets) ● Lists ● 500MB objects ● Single Threaded https://d0.awsstatic.com/whitepapers/performance-at-scale-with-amazon-elasticache.pdf
  • 5. Caching Strategies Write-through Synchronous Updates Lazy Loading Check cache, if empty then fill Write Behind Write in Cache first Read Replica Copy via Enterprise Bus
  • 6. Other Solutions ● Purpose built Databases ● S3 + CloudFront as cache for LLOs ● Perfectly optimized SQL queries ● GraphQL https://aws.amazon.com/getting-started/hands-on/purpose-built-databases/