Featured work / Logistics modernization case study

Global Logistics ERP Modernization Case Study: Refactoring 850K Lines of Legacy .NET WCF to Cloud-Native .NET 9 and AI Agents

Elatre modernized an 850,000-line legacy .NET WCF freight monolith using Roslyn AST dependency graphs, Claude Code, Checkmarx One SAST attack-path release gates, and a YARP Strangler Fig proxy. The program reduced p95 API latency from 1,850 milliseconds to 140 milliseconds, cut cloud and licensing costs by 54%, and achieved 99.6% shadow-traffic parity.

Senior engineers planning agentic legacy application modernization beside enterprise server infrastructure

1,850ms to 140ms

p95 API latency

54% lower costs

Cloud and licensing expenditure

99.6% parity

Shadow-traffic comparison

850,000 lines

Legacy .NET WCF application scope

Modernizing freight software without losing business behavior

A freight platform is more than a collection of endpoints. Its behavior includes validation rules, exception handling, integrations, and the relationships between operational records. Replacing a service implementation without understanding those dependencies can produce software that compiles successfully but behaves differently when real workloads arrive.

The challenge in this program was an 850,000-line .NET WCF monolith. Elatre used a staged architecture to move functionality toward cloud-native .NET 9 and AI agents. That approach connected source-code analysis, assisted engineering, security checks, traffic routing, and behavior comparison rather than treating code generation as the entire migration.

The objective was to improve production performance and operating economics while maintaining a measured view of behavioral parity. A new implementation needed evidence behind its release, not simply a convincing code diff.

The architecture combined five engineering layers

LayerTechnology or methodPurpose
Dependency analysisRoslyn AST dependency graphsUnderstand code structure and relationships before selecting refactoring boundaries.
Assisted engineeringClaude CodeSupport implementation and refactoring inside an engineering review process.
Target platformCloud-native .NET 9 and AI agentsEstablish the modernized application and workflow architecture.
Security release gatesCheckmarx One SAST attack-path checksEvaluate code security as part of release readiness.
Traffic migrationYARP Strangler Fig proxy and shadow trafficIntroduce new implementations incrementally and compare behavior before wider cutover.

Roslyn made dependencies visible before refactoring

Elatre used Roslyn abstract syntax tree dependency graphs to examine the legacy codebase. An AST represents the structure of source code rather than treating the repository as plain text. That distinction helps engineering reason about symbols, calls, interfaces, and the relationships that a simple keyword search can miss.

For a large WCF application, the useful question is not only where a service method is defined. It is what that method depends on, which callers depend on its behavior, and which shared components would change with it. Those relationships influence the size and risk of a migration unit.

Dependency analysis supports practical decisions about sequencing. A tightly coupled area may require more preparation than a bounded capability with a clear contract. Shared data access and cross-cutting rules also deserve attention before an apparently small service is separated from the monolith.

Our agentic legacy application modernization services use this type of architecture-led decomposition to connect code transformation with production behavior.

Claude Code supported engineering rather than replacing release controls

Claude Code formed part of the modernization toolchain. Its role sat within a broader process that included dependency analysis, code review, security checks, and behavior comparison. That surrounding structure matters because generated or refactored code can be syntactically correct while changing an important business rule.

A productive migration task needs a bounded objective. The engineer should know the existing contract, the desired implementation boundary, and the checks that determine whether the change is acceptable. Large, loosely specified rewrites make those decisions harder to inspect.

For WCF modernization, compatibility questions can extend beyond method names. Data serialization, error responses, timeouts, and transactional behavior may affect callers. The code migration needs to account for those contracts instead of assuming that a modern framework automatically reproduces them.

Elatre connects assisted development with the ownership and integration discipline of an enterprise custom software development team. The deliverable is maintainable software with a release process, not an accumulation of generated files.

YARP enabled a staged Strangler Fig migration

The program used a YARP Strangler Fig proxy to support incremental migration. In this pattern, a routing layer provides a controlled way to direct requests between an existing application and replacement implementations. It allows the system to evolve by capability instead of requiring every part of a monolith to move at once.

The proxy is a migration boundary, not a substitute for application correctness. Route configuration, authentication behavior, upstream availability, and error handling still require deliberate design. Traffic should move because the replacement is ready for that responsibility.

A staged approach also makes operational decisions easier to isolate. Engineering can examine a particular path, compare its behavior, and assess the consequences of changing its routing. That is more manageable than investigating a single cutover in which unrelated parts of the application changed together.

Shadow traffic supplied a behavioral comparison

Elatre measured 99.6% shadow-traffic parity during the modernization program. Shadow comparison gives engineering a way to examine how a replacement responds to representative requests before treating it as the production authority for that traffic.

Parity requires a defined comparison. Differences in timestamps, generated identifiers, or formatting should not be confused with changes to business meaning. Equally, a small-looking difference in a financial value, shipment status, or validation result can matter more than a large textual difference in a nonessential field.

Write operations need particular care when designing shadow execution. Replaying a request should not create duplicate real-world actions. A sound comparison design separates observation from production side effects and makes unexplained differences visible for review.

The measured parity result was one part of the release evidence. Performance, security, and operational readiness remained separate concerns rather than being compressed into a single percentage.

Security checks belonged in the release path

Checkmarx One SAST attack-path release gates formed part of the delivery architecture. Their purpose was to bring code security findings into the decision to release a change, including changes produced with AI assistance.

A release gate needs a clear policy: which findings block deployment, how exceptions are reviewed, and who owns remediation. Otherwise, scanning can become a report that arrives after the engineering decision has already been made.

Static analysis is useful alongside other checks. It does not replace runtime authorization, configuration review, integration testing, or production monitoring. The modernization architecture connected these responsibilities rather than treating a successful scan as proof that every possible failure had been removed.

Production results

MeasureBeforeProgram outcome
p95 API latency1,850 ms140 ms
Cloud and licensing costsLegacy operating baseline54% reduction
Shadow-traffic parityComparison against legacy behavior99.6%
Application scope850,000-line .NET WCF monolithModernization toward cloud-native .NET 9 and AI agents

The latency result concerns p95, rather than an average request. This distinction keeps the performance outcome tied to the measurement supplied for the program. The cost result covers cloud and licensing costs, rather than implying an equivalent reduction in every category of engineering expenditure.

A migration sequence engineering teams can review

  1. Map the code. Identify dependencies, shared behavior, and integration contracts.
  2. Select a bounded capability. Choose a migration unit that can be implemented and evaluated coherently.
  3. Refactor with review. Use assisted engineering within explicit code and acceptance controls.
  4. Apply security gates. Resolve release-blocking findings before routing production traffic.
  5. Compare behavior. Use shadow execution with controlled side effects and meaningful comparisons.
  6. Move traffic deliberately. Use the proxy boundary to introduce the replacement incrementally.

Build AI workflows on a dependable application foundation

AI agents become more useful when the surrounding application has clear interfaces and permissions. Our custom AI agent development and enterprise automation services connect agent workflows to defined business operations rather than exposing an entire legacy system through unrestricted access.

For a logistics organization planning modernization, Elatre can help connect dependency analysis, application engineering, security, traffic migration, and operational measurement in one delivery program.

Discuss your project with Elatre

Tell us which systems, workflows, and operating results your team needs to improve. We can review the architecture and define a practical implementation scope.