Ruby on Rails hosting: plan the recovery you can run
How I assess Ruby on Rails hosting for ongoing maintenance: queue isolation, storage access and recovery planning, with lessons from a live platform migration.
A production Rails system I run holds more than 17 million attachments and over 4 TB of media, with a 100 GB PostgreSQL database and inspections going back to 2011. At that scale, hosting stops being a monthly line item and decides which failures I can see, which ones I can reverse, and which ones I'll turn into silent corruption by mistake.
I've run this Rails workload on Hatchbox and DigitalOcean, and a separate airspace app on Cloudflare Workers, R2, and KV. Neither setup is universally better, because the host has to match the failures the system will hit and expose the ones you didn't plan for. A cheap VM gets expensive quickly if a backed-up queue stalls signed webhooks until a provider gives up, or if a storage migration leaves live records pointing at a bucket the app can't read.
Ruby on Rails hosting is part of the data-integrity design
On an early product with little state, a single managed database, a standard deploy, and a basic error tracker are plenty. This platform is different. It's an operations workspace and client portal for a property inventory agency, so every attachment has a provenance: it came from the legacy system, was adopted from older object storage, or was fetched later after an earlier import missed it. Report PDFs can be regenerated separately from their bodies, and a portal user must never hit a provider URL that works today and leaks the wrong file tomorrow.
That's why the Hatchbox and DigitalOcean layout stays conventional: PostgreSQL, Active Storage, and Solid Queue, with every data service named explicitly. I can inspect the deploy path, database connections, storage credentials, and worker processes directly, and that legibility beats clever abstractions when something breaks at 2am.
Two DigitalOcean Spaces buckets run side by side: current is read-write, and legacy is read-only. A migration isn't over the day the new bucket accepts uploads, because older records still point at historical media that only gets adopted after identity checks or downloaded fresh. Leaving write access open on the legacy bucket turns a preservation boundary into an accident waiting for a rake task or a buggy code path.
Protect webhook capacity from media downloads
The platform takes signed webhooks from the inspection source, Airtable, and Xero, and those events are time-sensitive; if they sit behind slow work, providers retry or surface failures in someone else's dashboard while an import is already pressing the same API. Media jobs do the opposite kind of work, downloading large images, handling missing URLs, comparing filenames, and logging gaps to a missing-download worklist.
With nearly 7 million observations, over 11 million Active Storage blobs, and 17 million attachments, even a small repair touches a lot of rows. Solid Queue being database-backed doesn't absolve you from separating lanes: webhook jobs need protected capacity, media downloads need concurrency caps and progress tracking, and reconciliation needs its own lane that can be throttled without touching live traffic.
Before I pick a host, I check whether I can run and watch separate worker groups (web, webhooks, media, and scheduled reconciliation) and slow down a noisy job without SSHing in to guess. One worker and one queue work fine on a small app. On years of documents, that setup bets every repair lands on a quiet day.
Storage migrations are a long production state
Running current and legacy Spaces together avoids the false choice between a risky big-bang copy and paying for two copies forever, because the configuration itself carries the migration state. The hard part is proving identity: two unrelated properties can both have a kitchen.jpg, and adopting the wrong file looks completely normal until someone notices the wrong room on a report. Collision reporting and a durable missing-download worklist are what turn a file copy into a verifiable migration.
Before trusting a host with 4 TB of files, I verify that the runtime role can write only to current, legacy keys stay strictly read-only, and staging prefixes can't touch production. I also test retrieval through the exact permissions the app uses (authenticated requests, proxied downloads, retry behaviour, and egress costs), because an emergency copy that hits a provider rate limit turns into a week of partial failures.
Verification is what kept the source system from being deleted too early. A per-property manifest built from read-only production queries and live source reads caught cover images and meter photos that had no UUID and had skipped an earlier download path; remediation then verified all 17,595 distinct cover-image URLs and all 42,494 distinct meter-photo URLs in imported storage. Because an actions backfill was still incomplete, the source stayed live, and a trustworthy host leaves room for that awkward intermediate state.
Observability must answer the next operational question
AppSignal, Sentry, and Rack::Attack each answer a different question during an incident. AppSignal shows where time went (database, external HTTP, or object storage), because 42% CPU doesn't explain a six-second authenticated request when media jobs have eaten every worker. Sentry groups exceptions by route and release so I can tell a transient provider retry from a code bug, while Rack::Attack keeps crawlers from saturating the database without blocking legitimate portal traffic.
On Hatchbox and DigitalOcean I track web duration, queue depth and job age per lane, database connection saturation, slow queries, free disk, and storage errors split between current and legacy. Ten thousand queued media jobs can be fine; a webhook waiting ten minutes isn't, and a failed legacy read means a migration gap while a failed current write stops live work. I also watch cursor movement, dead letters, Retry-After handling, and expiring OAuth tokens, because a green process can still retry the same root record in a loop. Then I test restores regularly. A backup isn't real until a fresh database boots, the app connects, and a real document renders.
Cloudflare changes what needs checking
The airspace app pulls two official GeoJSON feeds, normalises them, and publishes a zone bundle. A Cloudflare Worker syncs every ten minutes, stores raw and prepared bundles in R2, keeps the ETag in KV, and serves edge location checks; if a prepared bundle is missing after a deploy, the Worker rebuilds it from the raw copy. That fits a scheduled transform and read-heavy public API, though I wouldn't put a 100 GB relational operations app on it.
The trust questions shift to bindings, key prefixes, cron visibility, and failure modes. I track the last successful feed timestamp, malformed feature counts, and bundle availability, and a failed load or geometry check returns 503 UNAVAILABLE instead of CLEAR. When people check whether a flight is allowed, a false clear is far worse than an outage, so the iOS client only caches zones for browsing and marks live checks unavailable once the cache window expires.
The price comparison happens after the recovery plan
A host is cheap when ordinary recovery is documented and expensive when it's guesswork. Before committing to one, I write down what I'll do for a bad deploy, a saturated database, a backed-up queue, a rotated storage key, a provider outage, and last night's restore, including when to stop debugging and roll back. If restoring a database requires waiting on support, or storage can't stay read-only during a migration, the monthly savings disappear on the first incident.
For what drives the cost of replacing a legacy workflow, read what drives MVP development cost, and if you're evaluating existing software before taking it on, see my technical due diligence checklist.