Setting Up CI for a Multi-Database Rails App When One DB Is Read-Only

馃毃 The Problem Everything worked fine locally鈥攂ut CI kept failing. I was working on a Rails application that used two databases: A primary database (fully controlled by the app) A secondary database (owned by a different application) Here鈥檚 the catch: 馃憠 The secondary database was read-only from my app鈥檚 perspective. Locally, this wasn鈥檛 an issue because the database already existed and had the expected schema. But in CI: The secondary database didn鈥檛 exist Rails tried to interact with it like a normal DB Tests failed with missing tables and connection errors 馃攳 Root Cause The issue came down to this: ...

December 19, 2025 路 3 min 路 Mausam Pun

Optimizing Slack API Usage in a Rails App with Caching

馃毃 The Problem I was working on a Rails app that integrated with Slack for two main features: Mapping Slack users to our HR app Sending notifications to Slack users or channels Everything worked fine locally, but in staging and production, Slack rate-limit errors (429 Too Many Requests) started appearing: Mapping users required fetching the Slack user list repeatedly Sending notifications in bulk triggered multiple API requests in a short time Some requests failed, causing unreliable notifications and mapping 馃攳 Root Cause Slack imposes strict rate limits per API method. ...

October 23, 2025 路 2 min 路 Mausam Pun