The plants stay runningwhile we change the code.
Energy Studio Pro, at BaxEnergy. More than 150 customers, and each one has more than 4 TB. I work in the code that's already there: faster jobs, alarms on time, the SQL, and a slow move off .NET Framework.
- Product
- Energy Studio Pro (ESPx)
- Client
- BaxEnergy (Yokogawa)
- Role
- Senior Software Engineer · Full-Stack, Backend & Platform
- Since
- Jun 2025
Before and after, measured
Consolidation job
18.75× faster- Before
- ~5 min
- After
- 16 s
One representative job, same results.
Event prioritisation
~9.7× faster- Before
- 7,783 ms
- After
- 804 ms
Benchmark on the same 5,371 events.
Old and new, running side by side
Nothing can stop while the code moves, so two generations run at once. Pieces cross over one at a time.
Wind, solar and storage plants
SCADA and OPC DA, including old equipment
Older generation
- Windows services on .NET Framework
- WCF
- Legacy web pages
- WPF and Excel tools
Deployed with Octopus Deploy
.NET Standard 2.0
Shared libraries both sides can load
Newer generation
- Services on modern .NET
- REST and GraphQL
- Angular app
- Azure and on-premises
Deployed to Kubernetes with Helm
SQL Server · custom ORM · Redis
150+ customers, each with more than 4 TB
Across both: OpenTelemetry, OpenID Connect, and a CI/CD pipeline per service
You can't switch a plant off to refactor
ESPx has to stay up. So the new code lives next to the old: industrial protocols and Windows apps beside Kubernetes, in our cloud and on the customer's own machines. I've been moving .NET Framework libraries to .NET Standard 2.0 and on to current .NET. The slow part is the boring part: serialisation, authentication, and how services call each other, because both generations run during the move. Some old Node services got the same treatment. Pipelines came off Azure DevOps and TFS onto GitHub Actions. Auth is moving to OpenID Connect, with saner tokens and sessions.
- .NET Framework → .NET Standard 2.0 and modern .NET, incrementally
- Legacy Node.js components modernised
- Azure DevOps/TFS pipelines moved to GitHub Actions
- Authentication moved toward OIDC, with better token and session handling
Alarms on the dashboard in under 200 ms
ESPx connects the equipment, including old OPC DA, to the screens and the alarms. I built monitoring views for measurements, status, trends and alarms, kept those industrial integrations working, and tightened how alarms are processed, subscribed to and synced. In the scenarios we measured, a plant event is on the dashboard in under 200 milliseconds.
- SCADA monitoring interfaces and visualisations
- Legacy OPC DA integrations maintained and improved
- Alarm processing, subscriptions and delivery optimised
- 18.75×
- Faster consolidation: a representative job went from about 5 minutes to 16 seconds.
- 9.7×
- Faster event prioritisation: about 7,783 ms down to 804 ms on the same 5,371 events.
- <200 ms
- From power-plant event detection to dashboard delivery, in measured scenarios.
- 400+
- Defects resolved across functionality, performance, compatibility and reliability.
A five-minute job in sixteen seconds
Consolidation is the heavy processing behind monitoring and reports. Some of it took minutes. I made the sequential work run in parallel, cut out repeated calculations, and checked the results still matched. One representative job went from about 5 minutes to 16 seconds. That's 18.75×, on that job, not on the whole product.
- Sequential processing refactored for parallel execution
- Redundant calculations and overhead removed
- Same business results, verified
Faster rules, faster queries
Event prioritisation did more work as the event list grew, most of it useless. I changed how it processed and how rules were evaluated. Same 5,371 events: about 7,783 ms down to 804 ms, roughly 9.7×. Separately, I tune SQL Server and the custom ORM. That's more than 150 customers, each with more than 4 TB: filters, joins, indexes, pagination, batching, fewer round trips, and fewer concurrency surprises.
- Event prioritisation ~9.7× faster on a representative benchmark
- SQL Server tuned for 150+ customers, each with more than 4 TB
- Custom ORM data access and object mapping optimised
- Profiling, diagnostics and controlled benchmarks, not guesses
“A five-minute consolidation job now finishes in sixteen seconds.”
400+ bugs, most of them not where they looked
A lot of the job is bugs in a codebase that's been in production for years. More than 400 so far. High CPU, operations that kept running after the user had gone, leaks, tokens expiring, deadlocks, stale cache, services that drifted out of sync, timezones shifting a report window, desktop crashes, old build conflicts. Most of them only made sense after you followed them through two or three components. The fix had to be the cause, because a workaround in this codebase just moves the bug.
- Cancellation and timeouts fixed in long-running operations
- Resource leaks and CPU-heavy paths removed
- Fixes made at the cause, without regressions elsewhere
Seeing problems across services
Finding a production problem used to mean opening apps, boxes and logs one at a time. I put OpenTelemetry on the Kubernetes workloads, the services and the hosts, with dashboards and alerts. Some bugs only show up when two services interact. A cache cleared in one and read stale in another is the usual shape. .NET Aspire gives us a local setup where those can be reproduced, instead of guessed at from a screenshot.
- OpenTelemetry across Kubernetes, services and hosts
- Dashboards and alerting for early detection
- .NET Aspire local environments for multi-service bugs
From legacy pages to an Angular app
I've been moving the old .NET pages into an Angular app: asset monitoring, alarms, records, reports, the usual filters and bulk actions. Maintenance is its own workflow, because plant work has safety steps you don't get to skip: planning, tasks, scheduling, approvals. Notifications, GraphQL and the external APIs sit in the same pile.
- Angular SPA replacing legacy web pages
- Maintenance planning, tasks, scheduling and approvals
- Notifications, GraphQL and external APIs
Reports, Excel and WPF tools
Reports, Excel add-ins and generated documents. Big exports, charts that have to match what they used to, tokens, and date bugs that quietly moved a reporting window into the wrong day. On the WPF tools I fixed old crashes, replaced the login and session handling, and swapped an expensive third-party library for one we own. That saved the company thousands of dollars.
- Reporting workflows, Excel add-ins and document output
- Date and timezone handling fixed in reports
- Expensive third-party dependency replaced, saving thousands of dollars
The numbers I'll stand behind are the ones we measured. Five minutes to 16 seconds on a consolidation job. About 9.7× on event prioritisation, same 5,371 events. Alarms under 200 ms in the scenarios we timed. 400+ defects fixed at the cause. Around that: OpenTelemetry, the move toward OIDC, GitHub Actions, and a local setup where a bug that needs three services can be reproduced.
Technologies
C#, .NET, .NET Framework, .NET Standard 2.0, ASP.NET, Node.js, Angular, TypeScript, WPF, VSTO, SQL Server, Redis, Elasticsearch, REST, GraphQL, WCF, OPC DA, Azure, Docker, Kubernetes, OpenTelemetry, .NET Aspire, GitHub Actions, Azure DevOps, OpenID Connect