
Rails Scales!
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
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.
What You Need:
In the course of this book we will be using Rails 8.0 and Ruby 3.4. The data stores used will be MySQL, Postgres, Redis, and Memcached.
More details
Person
Content
- 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
- Summing Up
- 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
- Summing Up
- 4. Designing a Scalable API
- Paginating Your Endpoints
- Discovering Cursor-Based Pagination
- Splitting Your Model Data
- Implementing Sideloads
- Using GraphQL
- Summing Up
- 5. Tracking the Lifecycle of a Request
- Crossing the Internet with One Request
- Using HTTP Headers to Speed Up Your Application
- Introducing CDNs
- Summing Up
- 6. Thinking Architecture for Performance
- Discovering Sharding
- Improving Your Response Time with Asynchronous Processing
- Getting Started with Event-Driven Microservice Architectures
- Summing Up
- 7. Designing Product for Performance
- Setting Product Limits
- Managing the Life of Your Data
- Doing Things That Don't Scale
- Increasing Your Usability Time
- Summing Up
- 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
- Summing Up
- 9. Scaling, Beyond Performance
- Setting Up Ownership for Your Application
- Modularizing Your Application
- Using Feature Flags for Better Rollouts
- Summing Up
- 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 -
System requirements
File format: ePUB
Copy protection: Watermark-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Use a reading software that can process the file format ePUB: e.g., Adobe Digital Editions or FBReader – both free (see eBook Help).
- Tablet/Smartphone (Android; iOS): Before downloading, install the free app Adobe Digital Editions (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePUB works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Watermark-DRM, a „soft” copy protection. This means that there are no technical restrictions to prevent illegal distribution. However, there is a personalised watermark embedded in the eBook that can be used to identify the purchaser of the eBook in the event of misuse and to provide evidence for legal purposes.
For more information, see our eBook Help page.