Platform Evolution
Assessment run-2026-07-27-1 · 213 of 213 repos assessed
Repos / exchange-rate-service

exchange-rate-service

WCF service that stores and serves currency exchange rates and manual rate overrides for the finance domain.

44 · redmediumkernelOn-premZDD: a long roadservice

Health score

44

0 to 100 across seven weighted factors; nothing is hidden. Green is 75 and above, amber 50 to 74, red below 50. How scoring works.


Runtime currency / 25
0
.NET Framework, out of mainstream support
Legacy transport / 15
2
Hosts WCF or SOAP endpoints with no successor on modern .NET
Test posture / 15
8
Some tests, coverage is thin
Security hygiene / 15
15
No credentials found in source
Dangerous coupling / 15
5
depends on pinning component(s): application-framework; 13 dependents without good tests
Activity / 10
10
Actively maintained
Deployment hygiene / 5
5
CI in place
Health over time
2026-07-24 (run-2026-07-24-1): 442026-07-27 (run-2026-07-27-1): 44
No change since 2026-07-24 (44 to 44).

Facts

Languagescsharp, sql
FrameworksWCF, Autofac 9, TC.Phenix.ApplicationFramework 8.0.1
Runtimes.NET Framework 4.7.2
Tests / CIsome / CI in place
Last commit2026-07-21
OwnerOwner unknown (mapping to be curated)
DomainPayments and finance (system generated; curate in repo-owners.json to override)
Product areaPhenix
HostedOn-prem Deployed to our own machines
  • Release "\finance\exchange-rate\exchange-rate-service Database Dev": QA: deployment-group phase (agents on our own machines)
  • Release "\finance\exchange-rate\exchange-rate-service Database Release": Staging: deployment-group phase (agents on our own machines)
  • Release "\finance\exchange-rate\exchange-rate-service Database Release": Production: deployment-group phase (agents on our own machines)
  • Release "\finance\exchange-rate\exchange-rate-service Database Release": Training: deployment-group phase (agents on our own machines)
  • Release "\finance\exchange-rate\exchange-rate-service Dev": QA: deployment-group phase (agents on our own machines)
Releases4 release pipeline(s): \finance\exchange-rate\exchange-rate-service Database Dev; \finance\exchange-rate\exchange-rate-service Database Release; \finance\exchange-rate\exchange-rate-service Dev; \finance\exchange-rate\exchange-rate-service Release
Integrationwcf
SourceOpen in Azure DevOps

Risk flags

Each flag links to its glossary definition.

Dependencies in context

Laying out the graph…
greenamberreddata store (square, dashed link)Node size follows fan-in. Click any node to open it.

Entanglement

kernel Bound into the core by 2 mechanism(s).

Detaches when its pinning dependencies are cut or multi-targeted (application-framework); and when its WCF surface gains a modern interface or its WCF calls move to one.

Migration playbooks

Generated from this repo's assessment data: what is feasible, what blocks it, and the steps in order. Ratings: green means actionable now, amber means sequence other work first, red means blocked, grey means not applicable.

ZDD adoption

A long road

Technically eligible one day, but the blockers are structural: hosted WCF or SOAP contracts that cannot run two versions at once, or heavy legacy coupling. Sequence the modernisation work first. Hosts WCF or SOAP endpoints: strict serialization contracts cannot safely run two versions at once (the shared-enum trap). End-of-life runtime compounds the work.

Dependencies and gotchas
  • 13 system(s) depend on this repo; during a rolling deploy they will talk to old and new versions at once, so responses must stay compatible
Steps
  1. Adopt the four-stage discipline from the ZDD engineering standard: pre-deployment compatibility, deployment, feature activation behind a flag, post-release cleanup.
  2. Raise automated test coverage first: ZDD trades the end-of-sprint manual gate for continuous automated confidence, so the tests are the entry ticket.
  3. Make every change dual-version safe: backwards-compatible APIs (new major version for breaking wire changes), expand and contract for any schema change, and consumers tolerant of unknown fields.
  4. Audit serialized data: anything in Redis, queues or shared caches must deserialize cleanly across adjacent versions.
  5. Wrap behaviour changes in feature flags so code deploys dark and release becomes a business decision, not a deployment event.
  6. Route deployments through the Workflow Engine's automated drain, deploy, health-check, return cycle (the path proven by the first automated production run in mid-2026).
  7. Verify with area-scoped regression rather than the whole-platform cycle, and watch error rates after rollout with automated rollback on alert.

SQL Server exit

Feasible after replatforming (1 owned database)

The database is solely owned so no other system has to move, but the runtime is end-of-life; sequence the replatform first, then the engine swap.

Steps
  1. Inventory the schema and query surface of sqlserver:ExchangeRateRepository: tables, stored procedures, triggers, cross-database joins and anything else engine-specific.
  2. Confirm the target: PostgreSQL (relational model; keep transactions and joins, swap the engine).
  3. Replatform to modern .NET first (see the recommended actions): current PostgreSQL and MongoDB drivers and EF Core providers target modern .NET, and doing one risky change at a time is cheaper than doing two.
  4. Data access is not through an ORM, so port the SQL by hand: translate T-SQL constructs, replace stored procedures with application code or target-native equivalents, and add integration tests around the queries that matter first.
  5. Stand up the target alongside SQL Server, backfill with an ETL pass (pgloader or an export/import job), then dual-write or replicate until parity is proven.
  6. Move reads to the target, watch correctness and latency, then cut writes over and keep SQL Server read-only until confidence is earned.
  7. Decommission the SQL Server database and remove the connection strings and firewall paths that pointed at it.

Containerisation

Feasible after replatforming

Appropriate eventually, but not from here: the legacy runtime and the hosted WCF surface both have to go first, and that work is already in this repo's recommended actions.

Blockers
Steps
  1. Replatform to modern .NET first (see the recommended actions), replacing the hosted WCF/SOAP surface with REST, gRPC or messaging so consumers can follow. Containerising then becomes routine.
  2. Add a Dockerfile and make the app read all configuration from environment variables and the secrets manager, never from machine-local files.
  3. Log to stdout and expose a health check endpoint so ECS can supervise it.
  4. Adopt the shared ci.yml pipeline template with the container parameters (awsRegion, containerAfterBuild, ecsTerraformRepo), which is exactly how the estate's existing AWS services deploy.
  5. Define the service in the Terraform repo, deploy to a non-production environment, then shift traffic and disarm the deployment-group release pipeline.

Recommended actions

Replatform exchange-rate-service to modern .NET

Runs on .NET Framework 4.7.2, out of mainstream support. Blocked until stage 2 cuts: application-framework.

Impact: Unblocks 13 dependent system(s)

proposed

Raise the test floor on exchange-rate-service

13 systems depend on it and test coverage is thin. Chokepoints carry good tests before they are changed.

Impact: De-risks change for 13 dependent systems

proposed

Assessment notes

exchange-rate-service

Purpose

Finance-domain service exposing exchange rates and rate overrides through a WCF endpoint (ExchangeRateServiceHost.svc). Ships ServiceContract and ServiceClient NuGet packages consumed by other estate applications, plus its own repository database.

Tech stack

C# on .NET Framework 4.7.2, hosted in IIS as a WCF web application. Autofac for DI, TC.Phenix.ApplicationFramework 8.0.1 data layer, MongoDB.Driver 3.10, Microsoft.Data.SqlClient 7. Contract/client projects are packaged with the .NET 10 SDK for consumers.

Deployment

Four releases: Dev and Release pipelines for both the app and its database, under \finance\exchange-rate. Two build pipelines: exchange-rate-service CI (build.yml, shared azure-pipelines-templates) and exchange-rate-service Database (build.db.yml).

Dependencies

Internal NuGet packages: TC.ConnectionBroker suite (tc-connectionbroker), TC.Exceptions (tc-exceptions), TC.Phenix.ApplicationFramework (application-framework). No outbound HTTP calls to third-party services observed.

Data stores

SQL Server ExchangeRateRepository database (stored procedures maintained in the db/ project, deployed via its own pipeline). A MongoDB ExchangeRates database is wired up but disabled by default (MongoDB:Enabled=False), suggesting a partially completed migration.

Integration points

WCF (SOAP) endpoint only; connection resolution via TC ConnectionBroker (SQL, Mongo and API brokers registered).

Code health

Unit tests exist (tests/TC.ExchangeRate.ServiceHost.Tests, run in CI). Actively maintained (last commit 2026-07-21) with recently bumped package versions. StyleCop configured.

Modernisation risks

.NET Framework 4.7.2 + WCF host requires Windows/IIS and blocks a move to modern .NET (WCF server has no direct port; would need CoreWCF or a REST rewrite). Dual SQL/Mongo persistence with Mongo disabled adds dead-code risk. Client/contract packages create coupled consumers that must be migrated together.