Blog
#05Kárvor6 min2026-05-11

Eight Sprints in Two Days: The Stratos Growth Migration

A concrete chronicle of how we migrated a complete CRM and marketing service in 8 sprints, 2 days, and zero downtime.

The Monday Morning Problem

It was a Monday. We had SmartHub, our edtech platform, with an integrated marketing module called SmartHub Marketing that handled contacts, landing pages, campaigns, and the growth funnel. It worked. The problem was that it was coupled to SmartHub, and when we started building Dike — our legal tech platform — we realized we needed exactly the same capabilities.

The obvious and wrong answer was to duplicate the code. The right answer was to extract the module, convert it into a multi-tenant platform service, migrate SmartHub to consume it as a client, and retire the original code. All of this without disrupting service for SmartHub's existing users.

That's how the Stratos Growth migration started. Here's what happened, sprint by sprint.

Sprint 1 — The Foundation (one morning)

The first sprint was building the new service's public API from scratch. Stratos Growth needed to serve landing pages and receive form submissions without requiring authentication, because visitors to a landing page don't have an account in the system.

We defined public GET endpoints with rate limiting. We configured multi-tenant authentication: JWT trust-list for authenticated calls from product backends, and controlled anonymous access for public endpoints. We deployed the service on Railway within the shared platform project.

By mid-morning on day one, Stratos Growth v0.2.005 was in production serving public landing pages. The service existed. It had no users yet.

Sprint 2 — The Public Frontend (midday, day 1)

SmartHub Web, our public site built with Next.js, had a /l/[slug] route that rendered landing pages calling SmartHub Marketing directly. The sprint consisted of redirecting that route to consume data from Stratos Growth instead.

The technical decision was server-side rendering: the Next.js server fetches from Stratos Growth, gets the landing page, and renders it. If the landing doesn't exist, it returns 404. We had to handle error cases, caching, and invalidation correctly.

SmartHub Web v0.5.020 deployed shortly after noon. Landing pages now served from Stratos Growth. Users noticed nothing because the result was identical. The first chunk of real traffic had migrated.

Sprint 3 — The Backend Proxy (day 1, in parallel with Sprint 2)

SmartHub Backend needed to expose CRM admin routes through its existing API without the admin frontend knowing that a separate service now existed. We implemented a proxy: all routes under /api/growth/* are forwarded to Stratos Growth, injecting the service JWT and the correct project_id.

This pattern was deliberate. The admin frontend already knew how to talk to SmartHub Backend. Reconfiguring it to talk to a new service would have meant changes to CORS, authentication, and URLs. The backend as a transparent proxy avoided all of that.

SmartHub Backend v0.5.165 deployed before noon, in parallel with Sprint 2. The admin frontend could now consume data from Stratos Growth without knowing a separate service existed.

Sprint 4 — The CRM Admin (night, day 1)

This was the most delicate sprint. SmartHub's admin frontend had full CRM screens: contacts, companies, deals, pipelines. All connected directly to the previous API.

We migrated modules one by one. After each change, we verified the interface still worked. API calls were updated. Data types were adjusted to match Stratos Growth's new schema. Create, edit, and delete flows were verified one by one.

SmartHub Frontend v0.5.284 that same night. The entire CRM admin pointing to the new service. The SmartHub team kept using their CRM exactly as before.

Sprint 5 — Campaigns and Landing Pages Admin (night, day 1)

With the core CRM migrated, we moved to migrating the campaigns and landing pages admin. Creating and editing landing pages, managing email campaigns, configuring lead sources.

SmartHub Frontend v0.5.286. The entire marketing interface administered through Stratos Growth. At this point, the complete functionality of SmartHub Marketing existed in Stratos Growth and SmartHub was consuming it without knowing it.

Sprint 6 — The Cleanup (end of day 1)

This was our favorite sprint. With all functionality migrated and verified in production, we proceeded to retire SmartHub Marketing.

What this meant in practice: deletion of 13,870 lines of frontend code from SmartHub. Cleanup of environment variables, configurations, and references to the previous service. Service stopped on Railway. Repository archived on GitHub.

This wasn't a gradual deprecation. It was a complete removal. If anything still depended on the previous service, we'd find out immediately — not six months later. Legacy code deleted, service stopped, repository archived. Clean.

Sprints 7 and 8 — New Functionality (morning, day 2)

The next morning, with the base infrastructure migrated and legacy code gone, we started building functionality that SmartHub Marketing never had.

Sprint 7 added the email engine: Jinja2 sandboxed templates, signed unsubscribe tokens, webhook verification, and bounce tracking. 27 new tests. It shipped with Mailgun as the delivery provider (v0.2.007), and an hour later we switched to Resend (v0.2.008).

Sprint 8 added the heart of the campaign engine: async workers with Redis and RQ, scheduling with APScheduler, token bucket throttling to respect send rate limits, audience segments for targeting, scheduled sends, and retries with progressive backoff at 30 seconds, 2 minutes, and 10 minutes. 24 new tests. 100 tests total. Stratos Growth v0.2.011.

The Numbers at Close

  • 8 sprints in approximately 27 hours of execution, spread across 2 calendar days
  • 0 minutes of downtime for existing SmartHub users
  • 13,870 lines of legacy code removed
  • 100 automated tests in the new service
  • Every sprint with its own version bump, traceable in each repository it touched
  • 1 monolithic service replaced by 1 multi-tenant platform service

Why This Was Possible

Speed isn't the point. Anyone can go fast if they sacrifice quality or planning. The point is the combination of speed, quality, and zero disruption.

Each sprint was independent and deployable. If something went wrong in Sprint 4, Sprints 1-3 kept working. There was no "big bang" moment where everything had to work together for the first time. The migration was incremental, verifiable, and reversible at every step.

What made this speed possible was having mature deployment infrastructure, a test suite that gave enough confidence to move quickly, and the discipline of keeping scopes small and verifiable. It wasn't magic. It was the same process applied eight times in a row with a predictable outcome at each iteration.

By the end of day two, Dike — the company that motivated the entire migration — had access to a complete platform CRM, with a campaign engine, that didn't cost it a single engineering sprint. The SmartHub migration was the price we paid once. Every company that comes after inherits it for free.

This article is about Kárvor.