phenix-provider
Monorepo of three .NET 8/10 APIs and shared libraries managing provider configurations (SQL) and provider transaction logging (MongoDB), plus the ProxyTools NuGet library used for provider HTTP proxying.
Health score
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.
Facts
| Languages | csharp |
| Frameworks | ASP.NET Core 8, ASP.NET Core 10, EF Core, MassTransit, Coravel, MediatR |
| Runtimes | .NET 8, .NET 10, .NET Framework 4.6.2 |
| Tests / CI | good / CI in place |
| Last commit | 2026-07-24 |
| Owner | Owner unknown (mapping to be curated) |
| Domain | Selling and quoting (system generated; curate in repo-owners.json to override) |
| Product area | Phenix |
| Hosted | On-prem Deployed to our own machines
|
| Releases | 3 release pipeline(s): \commercial\provider\phenix-provider-transaction-logging-api; \commercial\provider\phenix-providers-api; phenix-providerloggingproxy-api |
| Integration | rest, masstransit, sqs, redis |
| Source | Open in Azure DevOps |
Dependencies in context
Entanglement
loosely attached Bound into the core by 1 mechanism(s).
- Shares core database sqlserver:Phenix
Detaches when the shared database group it belongs to gains an owned API or completes schema separation (sqlserver:Phenix).
Depends on / used by
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
Needs workFeasible through the Workflow Engine's rolling drain, but real preparation is needed: dual-version discipline, better tests, or schema care before at-will release is sensible. Legacy runtime: the rolling drain works (stealth releases prove it) but relies on fix-forward risk rather than dual-version safety. Shares sqlserver:Phenix: schema changes move in convoy.
- 5 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
- Shares sqlserver:Phenix with 21 system(s): destructive schema change is prohibited in a single release; expand and contract only
- Serialized state or messages in flight (Redis or queues): new code must deserialize objects written by the previous version
- Session is externalised to Redis: keep it that way, and check session object compatibility between versions
- Adopt the four-stage discipline from the ZDD engineering standard: pre-deployment compatibility, deployment, feature activation behind a flag, post-release cleanup.
- 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.
- Audit serialized data: anything in Redis, queues or shared caches must deserialize cleanly across adjacent versions.
- Wrap behaviour changes in feature flags so code deploys dark and release becomes a business decision, not a deployment event.
- 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).
- 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
Blocked by a shared core databasesqlserver:Phenix is shared, so this system cannot change engine on its own: every sharer moves in convoy. The stage 4 work (named owner, declarative schema, owned API) has to land first; after that, the steps below apply to whatever slice this system ends up owning.
- Inventory the schema and query surface of sqlserver:Phenix: tables, stored procedures, triggers, cross-database joins and anything else engine-specific.
- Confirm the target: PostgreSQL (relational model; keep transactions and joins, swap the engine).
- 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.
- 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.
- 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.
- Move reads to the target, watch correctness and latency, then cut writes over and keep SQL Server read-only until confidence is earned.
- Decommission the SQL Server database and remove the connection strings and firewall paths that pointed at it.
Containerisation
Feasible after replatformingAppropriate, but the .NET Framework runtime has to go first; container work rides along with the replatform rather than preceding it.
- .NET Framework only runs on Windows; practical (Linux) containers need modern .NET
- Replatform to modern .NET first (see the recommended actions). Containerising then becomes routine.
- Add a Dockerfile and make the app read all configuration from environment variables and the secrets manager, never from machine-local files.
- Log to stdout and expose a health check endpoint so ECS can supervise it.
- 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.
- 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 phenix-provider to modern .NET
Runs on .NET 8, .NET 10, .NET Framework 4.6.2, out of mainstream support. No pinning dependency blocks it; sequence by fan-in (providers before consumers). Shares sqlserver:Phenix, so batch it with its database group (stage 4).
Impact: Unblocks 5 dependent system(s)
proposedAssessment notes
phenix-provider
Purpose
Monorepo for the Phenix provider platform: Provider API (CRUD over provider configurations, types, URLs and company logins), Logging Proxy API (writes provider request/response transactions to MongoDB with Coravel-scheduled TTL cleanup, and consumes an AccommodationSavedToBackOfficePtrUpdate message), Provider Transaction Logging API (read/search over the logged transactions, V1 and V2 formats), plus client NuGet packages and the ProxyTools library (proxy-enabled HTTP client abstractions used by provider integrations, with documented breaking-changes history up to v13).
Tech stack
C# with central package management (Directory.Packages.props), Nerdbank.GitVersioning, and an .slnx solution file. APIs target .NET 8/.NET 10 (some multi-target both); client/ProxyTools libraries multi-target net462/net8.0/net10.0 for legacy consumers. EF Core SqlServer, MongoDB via TC.ConnectionBroker.Mongo, MediatR, PhenixAuth 7, TC.ApiTools 11, TC.RemoteSession.Redis, MassTransit over Amazon SQS, TC.AWS.S3, FluentResults.
Deployment
Included as prod_application with 3 releases. Six YAML pipelines in the repo root (API, client, logging-proxy, proxy-tools, transaction-logging API and client), each path-filtered to its component and using shared azure-pipelines-templates. Build pipelines phenix-providers-api, phenix-provider-logging-proxy-api, phenix-provider-transaction-logging-api; release pipelines under \commercial\provider\ plus phenix-providerloggingproxy-api. New Relic APM per environment.
Dependencies
Internal: TC.ConnectionBroker suite 1.24 (tc-connectionbroker) for SQL/Mongo/Redis/API/AWS/WCF connectivity; TC.Exceptions.WebApiClient (tc-exceptions); PhenixAuth, TC.ApiTools, TC.Hosting, TC.RemoteSession (package-only, no matching estate repo). External: AWS SQS (MassTransit transport), AWS S3, New Relic.
Data stores
Provider API uses EF Core against the shared Phenix SQL Server database (connection resolved via ConnectionBroker) plus a providerApi_logs Mongo database for its own logging. The two logging APIs share the ProviderTransactions MongoDB database. Redis backs remote session in the logging proxy.
Integration points
REST APIs (inbound, consumed across Phenix); MassTransit/SQS consumer for back-office accommodation updates; Redis remote session. ProxyTools is consumed as a library by provider integration services.
Code health
Well maintained: unit and integration test projects for every component (~56 test methods), StyleCop/analyser config, YAML CI everywhere, BREAKING_CHANGES.md and a CLAUDE.MD architecture summary, active development (last commit 2026-07-24). The root README is still boilerplate scaffold text.
Modernisation risks
Low: already on .NET 8/10 with modern tooling. Main watch items are coupling to the shared Phenix SQL database for provider configuration, net462 multi-targeting kept alive for legacy consumers of the client/ProxyTools packages, and the fact that three production APIs live in one repo (path-filtered pipelines mitigate this).