Medius · Accounts payable · Platform · 1-year engagement

355 controllers. Zero downtime.

Moving the accounts-payable core of a live platform to a modern runtime, one endpoint at a time.

355 controllers · 0 downtime

The problem

The core of Medius ran as a tightly-coupled .NET Framework monolith on an Azure hosting model heading for end-of-life. It had to move to a modern runtime — but it processes live invoices for real companies, so a big-bang rewrite was off the table. The migration had to happen one controller at a time, in production, reversibly.

My role

Built the foundation the migration team ran on: an abstraction layer that switches traffic per endpoint between the legacy and new runtime with a five-minute production rollback, plus the backward-compatibility and testing groundwork — then batch-migrated controllers against it.

What I built

  • Per-endpoint traffic control between the legacy and the new runtime, with a five-minute rollback in production.
  • Old-vs-new non-regression testing backed by ~4,700 E2E tests.
  • SQL-log diffing to verify endpoints that mutate data.
  • Architecture rules enforced in the build, so the new code stays clean.

Outcome

A proven, reversible path off the monolith — the stepping stones the rest of the team used to migrate all 355 controllers.

Read the essay

A longer write-up of how this was built.

Rewiring a Monolith in Mid-Flight

Stack

  • C#
  • .NET 6
  • ASP.NET Core
  • Entity Framework
  • Azure