Naval Logistics Platform

Monolith to Microservices

Architectural lead replacing a two-decade-old C/C# monolith with Java microservices and React micro-frontends for port logistics, live on a shared DB2 throughout.

99.98% uptime3× fewer monthly incidentsComponent-isolated failuresZero-downtime blue/green
  • Java 17
  • Spring Boot 3
  • Apache Kafka
  • Redis
  • Elasticsearch
  • Azure
  • React
  • Ansible
  • DB2
  • Dynatrace

Overview

A major port logistics operator needed to retire a platform that had been running for 20 to 25 years: a C backend monolith with a C# desktop client. Its replacement had to be a web platform covering the full naval logistics lifecycle: ship scheduling, voyage planning, passenger and freight bookings, payments and fleet management.

This was more than a rewrite. The business wanted proper role-based access control, full feature parity with the old system, faster delivery without full recompiles, and less regression risk. And the new platform had to stay compatible with the AS400/DB2 data source the legacy system kept using throughout the transition.

Challenge

Raw speed was not on our side. The legacy C backend did everything in one process: no network hops, no serialisation. A distributed Java platform pays for both on every call, so it could never beat the old system on raw execution. It had to keep up through parallelism and asynchronous processing wherever the domain allowed it.

Two systems, one database. The legacy platform and the new one read and wrote the same DB2 data for the whole migration. Every new service had to produce and consume data that both systems understood at the same time. Backward compatibility was not negotiable at any step.

Solution

  1. Domain boundaries first. Before writing a service, we mapped clear ownership across the platform. Without it, adding asynchronous messaging between services would have created more coupling, not less.

  2. Event-driven choreography. Every state change emitted a domain event on Apache Kafka. Services reacted asynchronously, so their lifecycles were decoupled with no tight runtime dependencies between them.

  3. Access control through Azure AD. Roles and group membership came from Azure Active Directory, giving fine-grained permissions inside the client’s existing identity setup.

  4. Built on Azure. Service Bus for reliable messaging, Blob Storage for documents, an API gateway for routing and rate limiting, and Azure Monitor for centralised logs.

  5. React micro-frontends. The new interface was a set of independently deployable micro-frontends, so the C# desktop client could be replaced screen by screen instead of in one big release.

  6. Blue/green deployment. Traffic shifted progressively between versions with instant rollback, so releases never took the platform down.

Outcome

  • 99.98% uptime under production load, backed by quality and monitoring processes built from the start.
  • 3× fewer production incidents per month since the modernisation, and the trend is still going down.
  • Failures stay contained. Service boundaries mean one component failing cannot cascade across the platform.
  • Teams ship independently, without coordinating a monolithic release or running a full regression cycle.
  • Zero downtime across the whole migration.
  • Full observability with Dynatrace: distributed traces, metrics and custom alerts on any unexpected production behaviour.