π Overview Using Ruby on Rails has helped make it possible to scale out and scale up to meet the demand of millions of customers enjoying their photos on millions of digital frames. The team added more primary databases to scale write and read operations out. Rails helps this with connection pools for each primary database, while working with the same deployed codebase. Web servers chosen long ago have been battle tested, including Apache, Phusion Passenger Enterprise Edition, and a custom AMI EC2 instance, part of an Auto Scaling Group (ASG) scaling to thousands of instances at peak for API traffic. With 8 primary databases in total, each server instance can be vertically scaled up for peak load, and back down later for cost savings. Primarily moving to Multiple Databases leveraged the disable_joins: true feature of Active Record, simulating joins for tables in separate databases. This post looks at a variety of additional data layer scaling tactics, some part of Active Record andβ¦
No comments yet. Log in to reply on the Fediverse. Comments will appear here.