Skip to content
← All work
Application platformLedIn progressKnovos

Taking a large .NET application off Windows and onto Linux containers

The project that came with the promotion. A long-lived Windows-hosted .NET application, moving onto Linux containers one service at a time, so it scales as one platform, gets ready for Kubernetes and stops paying for Windows licences it does not need.

Product
Enterprise e-discovery application
Users
Users: withheld under NDA
Codebase size
Codebase size: withheld under NDA
Team
Small team, led by me
Target
Linux containers, Kubernetes-ready
Status
In progress

Employer work under NDA. Architecture and reasoning are described; client names, volumes and internals are withheld.

Context

The application is the company's main product and runs as one deployment on Windows Server. It works, and it scales the way a single deployable unit does: as a whole.

The problem

Windows hosting carries Microsoft licensing cost on every host, and adding capacity for one busy part means adding it for all of it. Infrastructure work alone cannot fix that, because the limits are inside the application.

What made it hard

  • It is in production for large clients the whole time. Nothing can be a big-bang rewrite.
  • Anything that turns out to need Windows stays on Windows until it does not. The migration does not get to break it.
  • The team owns infrastructure today and is learning the application as it goes, me included.

Options considered

  • Lift the whole thing into Windows containers

    Quickest to a container, but keeps the licensing cost and the single deployable unit. It changes the packaging, not the problem.

  • Rewrite as new services

    Rejected. A rewrite of a product clients depend on is a multi-year bet that stops delivery while it runs.

  • ChosenMove it onto Linux containers, service by service, at boundaries found in the code

    Every service that moves pays for itself in licensing and scaling, and the rest keeps running untouched.

The decision

Go service by service. Read the code to find where it already wants to split, move each piece onto Linux containers built by one pipeline, publish to the internal registry, and shape the deployment so Kubernetes is the next step rather than another migration.

TODAYBUILDTARGET RUNTIMElinux containers · kubernetes-ready.NET applicationone deployable unitWindows Serverlicensedone pipelineimage per serviceinternal registryNexusentry pointserviceserviceworker…boundaries come from reading the code, not from a whiteboard
Fig. The target, not the finished state. One Windows-hosted application becomes services that build and run as Linux containers, behind one entry point, ready to move onto Kubernetes.

My part

I lead it: the target architecture, the order services move in, and the build and runtime platform. The team does the containerisation with me. This is the move from infrastructure into the application itself, which is most of why the role changed.

Stack

  • .NET
  • Docker
  • Linux
  • Sonatype Nexus
  • nginx
  • Kubernetes (target)

Result

  • In progress, so no outcome is claimed yet.
  • What will be measured: Windows hosts and licences retired, time from commit to running service, and how far each service scales on its own.

What I would change

Too early to say honestly. This section gets written when the first services have run in production long enough to be wrong about something.