21CTO
21CTO
Mar 6, 2021 · Information Security

How a Rookie SQL Injection Mistake Cost Gab’s CTO and Users 70 GB of Data

A recent DDoSecrets leak revealed that Gab’s new CTO introduced a simple SQL injection flaw in the Rails codebase, allowing hackers to steal 70 GB of user data, prompting the CEO’s public apology, code deletions, and a stark reminder of the importance of secure coding practices.

CTO mistakeRailsSQL Injection
0 likes · 9 min read
How a Rookie SQL Injection Mistake Cost Gab’s CTO and Users 70 GB of Data
Meituan Technology Team
Meituan Technology Team
Apr 26, 2018 · Fundamentals

Ruby-Based Automation Testing Frameworks: Coral-API and Coral-APP

Facing tight resources, Shanghai’s takeaway QA team adopted Ruby to craft two automation frameworks—Coral‑API for interface testing with a DSL, code generation and extensibility, and Coral‑APP for UI testing using Appium and Cucumber—while also building a Rails‑based quality management system that cut regression time by over half, trained new Ruby users, and uncovered version‑specific bugs through CI integration.

API testingCoral-APICoral-APP
0 likes · 17 min read
Ruby-Based Automation Testing Frameworks: Coral-API and Coral-APP
dbaplus Community
dbaplus Community
Oct 17, 2017 · Databases

How to Migrate a MongoDB Database to MySQL with Minimal Downtime

This article walks through a practical, step‑by‑step migration from MongoDB to MySQL for a Rails project, covering data export, preprocessing embedded documents, handling UUIDs, adapting Mongoid plugins, rewriting models, writing migration scripts, rebuilding relationships, managing many‑to‑many links, and emphasizing thorough testing to ensure a smooth, low‑downtime transition.

ActiveRecordDatabase MigrationMongoDB
0 likes · 23 min read
How to Migrate a MongoDB Database to MySQL with Minimal Downtime
ITPUB
ITPUB
Mar 13, 2017 · Backend Development

How to Replace CouchDB with Redis for High‑Traffic Report Caching in Rails

This article explains why a legacy Rails 3 application switched from CouchDB to Redis for caching a heavy daily‑updated report, detailing the design, configuration files, service class, producer and consumer code, and the resulting performance improvements.

RailsRedisRuby
0 likes · 8 min read
How to Replace CouchDB with Redis for High‑Traffic Report Caching in Rails
21CTO
21CTO
Apr 21, 2016 · Backend Development

Replacing CouchDB with Redis Cache for Heavy Rails Queries

This article explains how a failing CouchDB‑based Rails cache for a massive SQL report was redesigned using Redis, detailing configuration, a producer‑consumer pattern, service encapsulation, and scheduled rake tasks to achieve stable, fast page loads.

RailsRakeRuby
0 likes · 8 min read
Replacing CouchDB with Redis Cache for Heavy Rails Queries
21CTO
21CTO
Feb 25, 2016 · Backend Development

Mastering Multi‑Layer Caching in Rails with Nginx, Redis, and MySQL

This article explains six practical caching strategies—from client‑side HTTP 304 handling to Nginx static caching, full‑page, fragment, query, and database caches—using Ruby on Rails, Nginx, MySQL, and Redis to dramatically improve web application performance.

RailsRedisWeb Development
0 likes · 12 min read
Mastering Multi‑Layer Caching in Rails with Nginx, Redis, and MySQL
Architect
Architect
Nov 22, 2015 · Backend Development

Implementing Rails Fragment Cache with Redis and Session Storage

This article explains how to enable Rails fragment caching, use HTML fragment cache helpers, understand cache digests, observe read/write fragment logs, and migrate the cache store from file system to Redis by adding redis-namespace and redis-rails gems, configuring cache_store, and handling cache invalidation on data changes.

FragmentCacheRailsRedis
0 likes · 9 min read
Implementing Rails Fragment Cache with Redis and Session Storage