2 options
Rails Scales! : Practical Techniques for Performance and Growth.
- Format:
- Book
- Author/Creator:
- Planas, Cristian.
- Series:
- Pragmatic programmers.
- Facets of Ruby series.
- The pragmatic programmers
- Facets of Ruby series
- Language:
- English
- Subjects (All):
- Ruby on rails (Electronic resource).
- Application software--Development.
- Application software.
- Physical Description:
- 1 online resource (300 pages)
- Edition:
- 1st ed.
- Place of Publication:
- La Vergne : Pragmatic Programmers, LLC, The, 2025.
- Summary:
- Rails doesn't scale. So say the naysayers. They're wrong. Ruby on Rails runs some of the biggest sites in the world, impacting the lives of millions of users while efficiently crunching petabytes of data. This book reveals how they do it, and how you can apply the same techniques to your applications. Optimize everything necessary to make an application function at scale: monitoring, product design, Ruby code, software architecture, database access, caching, and more. Even if your app may never have millions of users, you reduce the costs of hosting and maintaining it. Optimize every aspect of your Ruby on Rails applications for world-class performance. Tweak your Rails app for snappy responsiveness. Find bottlenecks that slow your code. Scale an app for massive data sets. This book introduces techniques, patterns, and tricks to make your Rails application become more performant and scale to billions of requests per day. And it does it in an entertaining and fun way, sharing real-life stories of all kinds: tales from the trenches of working on massive Rails apps, and anecdotes from working on much smaller projects in tiny organizations of a handful of engineers. Through all these experiences you will learn that scaling Rails applications is a multifaceted task, including aspects such as monitoring, query tuning, and memory-aware coding. This book is for programmers of all levels of experience, from beginners to experienced Rails veterans. You can even show your nontechnical colleagues the features and limitations of Rails at scale. Reading this book will help you make Rails applications that fly. And it will make you enjoy the process.
- Contents:
- Cover
- Table of Contents
- Acknowledgments
- Introduction
- We Need to Talk About the Rails Learning Curve
- Techniques for a Rails Renaissance
- About This Book
- 1. Setting Up Your Machine
- Understanding the Application Database Setup
- Downloading the Application
- Setting Up Ruby
- Installing the Database(s) and the Caching Stores
- Setting Up Rails
- Loading the Example Dataset
- Summing Up
- 2. Optimizing Data Access with ActiveRecord
- Managing Data the Rails Way
- Removing n+1s and Preloading Data
- Discovering Wide Fetching and Narrow Fetching
- Explaining EXPLAIN
- Indexing
- 3. Understanding All the Faces of Caching
- Caching and Denormalizing
- Using counter_cache in Rails
- Setting Up Your Caching
- Using Fragment Caching
- Using Russian Doll Caching
- Writing Your Own Caching
- Using Write-Through Caching
- Implementing Fan-Out Writing
- Using Action Caching and Page Caching
- Adding a Cache Layer to ActiveRecord
- Choosing a Storage System for Your Cache
- Using Denormalization
- 4. Designing a Scalable API
- Paginating Your Endpoints
- Discovering Cursor-Based Pagination
- Splitting Your Model Data
- Implementing Sideloads
- Using GraphQL
- 5. Tracking the Lifecycle of a Request
- Crossing the Internet with One Request
- Using HTTP Headers to Speed Up Your Application
- Introducing CDNs
- 6. Thinking Architecture for Performance
- Discovering Sharding
- Improving Your Response Time with Asynchronous Processing
- Getting Started with Event-Driven Microservice Architectures
- 7. Designing Product for Performance
- Setting Product Limits
- Managing the Life of Your Data
- Doing Things That Don't Scale
- Increasing Your Usability Time
- 8. Monitoring Performance to Build Scalable Systems.
- Choosing and Installing Your Observability Platform
- Monitoring (Almost) All the Things!
- Building Your Own Dashboards
- Setting Up Performance Error Budgets
- Being Wary of How Much You Spend
- 9. Scaling, Beyond Performance
- Setting Up Ownership for Your Application
- Modularizing Your Application
- Using Feature Flags for Better Rollouts
- 10. The Next 20 Years with Rails
- Scaling with Human-First Technology
- Index
- - DIGITS -
- - A -
- - B -
- - C -
- - D -
- - E -
- - F -
- - G -
- - H -
- - I -
- - J -
- - K -
- - L -
- - M -
- - N -
- - O -
- - P -
- - Q -
- - R -
- - S -
- - T -
- - U -
- - V -
- - W -
- - X -
- - Y -
- - Z -.
- Notes:
- Includes index.
- Description based on publisher supplied metadata and other sources.
- Other Format:
- Print version: Planas, Cristian Rails Scales!
- ISBN:
- 9798888651681
- OCLC:
- 1526841859
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.