SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Copyright Dimelo SA www.dimelo.com Rails performance: Controlled expiration on Fragment Caching Renaud MORVAN [email_address]
Given a slow partial on a website Copyright Dimelo SA www.dimelo.com
Load is skyrocketing when traffic increase Copyright Dimelo SA www.dimelo.com
A known solution: fragment caching ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright Dimelo SA www.dimelo.com
Sweeping is hard ,[object Object],Copyright Dimelo SA www.dimelo.com
Sweeping is hard ,[object Object],[object Object],[object Object],[object Object],[object Object],Copyright Dimelo SA www.dimelo.com
But ... here is the load profile when traffic keep on increasing Copyright Dimelo SA www.dimelo.com
Fragment cache is no silver bullet ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Copyright Dimelo SA www.dimelo.com
Solution: backgrounded sweeping ,[object Object],[object Object],[object Object],[object Object],[object Object],Copyright Dimelo SA www.dimelo.com
My solution: Atomic fragment caching ,[object Object],[object Object],[object Object],[object Object],Copyright Dimelo SA www.dimelo.com
Quick proposal: ,[object Object],[object Object],[object Object],[object Object],[object Object],Copyright Dimelo SA www.dimelo.com

Weitere ähnliche Inhalte

Andere mochten auch

Please Take It Outside
Please Take It OutsidePlease Take It Outside
Please Take It Outsideguest1bcf9
 
Cards Center Project Approach May 24 2008
Cards Center Project Approach May 24 2008Cards Center Project Approach May 24 2008
Cards Center Project Approach May 24 2008Saeed A Siddiki
 
Discover your spiritual gifts
Discover your spiritual giftsDiscover your spiritual gifts
Discover your spiritual giftsAsela Jayarathne
 
Help children todiscover their gifts
Help children todiscover their giftsHelp children todiscover their gifts
Help children todiscover their giftsAsela Jayarathne
 
Simon's Christmas - Christmas drama for kids
Simon's Christmas - Christmas drama for kids Simon's Christmas - Christmas drama for kids
Simon's Christmas - Christmas drama for kids Asela Jayarathne
 
How to lead a child to Christ
How to lead a child to ChristHow to lead a child to Christ
How to lead a child to ChristAsela Jayarathne
 
Discover Your Spiritual Gifts - by Asela Jayarathne
Discover Your Spiritual Gifts - by Asela Jayarathne Discover Your Spiritual Gifts - by Asela Jayarathne
Discover Your Spiritual Gifts - by Asela Jayarathne Asela Jayarathne
 

Andere mochten auch (10)

Sheni's Christmas!
Sheni's Christmas!Sheni's Christmas!
Sheni's Christmas!
 
Please Take It Outside
Please Take It OutsidePlease Take It Outside
Please Take It Outside
 
I18n in Rails2.2
I18n in Rails2.2I18n in Rails2.2
I18n in Rails2.2
 
Cards Center Project Approach May 24 2008
Cards Center Project Approach May 24 2008Cards Center Project Approach May 24 2008
Cards Center Project Approach May 24 2008
 
Discover your spiritual gifts
Discover your spiritual giftsDiscover your spiritual gifts
Discover your spiritual gifts
 
Help children todiscover their gifts
Help children todiscover their giftsHelp children todiscover their gifts
Help children todiscover their gifts
 
Simon's Christmas - Christmas drama for kids
Simon's Christmas - Christmas drama for kids Simon's Christmas - Christmas drama for kids
Simon's Christmas - Christmas drama for kids
 
How to lead a child to Christ
How to lead a child to ChristHow to lead a child to Christ
How to lead a child to Christ
 
Discover Your Spiritual Gifts - by Asela Jayarathne
Discover Your Spiritual Gifts - by Asela Jayarathne Discover Your Spiritual Gifts - by Asela Jayarathne
Discover Your Spiritual Gifts - by Asela Jayarathne
 
Play and pray new book
Play and pray   new bookPlay and pray   new book
Play and pray new book
 

Kürzlich hochgeladen

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 

Kürzlich hochgeladen (20)

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 

Improve behavior of Rails fragment caching at high volume

  • 1. Copyright Dimelo SA www.dimelo.com Rails performance: Controlled expiration on Fragment Caching Renaud MORVAN [email_address]
  • 2. Given a slow partial on a website Copyright Dimelo SA www.dimelo.com
  • 3. Load is skyrocketing when traffic increase Copyright Dimelo SA www.dimelo.com
  • 4.
  • 5.
  • 6.
  • 7. But ... here is the load profile when traffic keep on increasing Copyright Dimelo SA www.dimelo.com
  • 8.
  • 9.
  • 10.
  • 11.