# Energy Studio Pro (ESPx)

https://semirhamid.com/work/espx · Enterprise .NET · distributed systems

> 150+ energy customers, each with more than 4 TB, waiting about 5 minutes on a consolidation job. It now takes 16 seconds, 18.75× faster, and alarms reach the dashboard in under 200 ms. Changed while the plants stayed online.

Energy Studio Pro is how BaxEnergy's customers watch and run wind farms, solar plants and storage. More than 150 of them run on it, and each has more than 4 TB. It's old and new at the same time: industrial protocols, Windows apps, and services on Kubernetes, in the cloud and on site. The part I can measure: a representative consolidation job went from about 5 minutes to 16 seconds. Event prioritisation on 5,371 events went from about 7.8 seconds to 0.8. Alarms, in the scenarios we measured, reach the dashboard in under 200 ms. A lot of the rest is bugs, SQL, and moving Framework code forward without stopping the plants.

- **Product:** Energy Studio Pro (ESPx)
- **Client:** BaxEnergy (Yokogawa)
- **Role:** Senior Software Engineer · Full-Stack, Backend & Platform
- **Since:** Jun 2025

## Before and after

- Consolidation job: ~5 min to 16 s (18.75× faster). One representative job, same results.
- Event prioritisation: 7,783 ms to 804 ms (~9.7× faster). Benchmark on the same 5,371 events.

## Numbers

- 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.

## What I worked on

- Consolidation engine 18.75× faster; event prioritisation 9.7× faster
- Real-time alarms under 200 ms; SQL Server for 150+ customers, each over 4 TB
- .NET modernisation, OIDC, OpenTelemetry, .NET Aspire and GitHub Actions
- Angular, maintenance workflows, reporting and WPF tools; 400+ defects fixed

## 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

## 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

## 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

> A five-minute consolidation job now finishes in sixteen seconds.

## Outcome

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.

**Stack:** 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

## Contact

- Work email: contact@semirhamid.com
- Anything else: hello@semirhamid.com
- Book a call: https://calendly.com/semirhamid
- CV (PDF): https://semirhamid.com/resume.pdf
- LinkedIn: https://www.linkedin.com/in/semirhamid
- GitHub: https://github.com/semirhamid
- Based in Addis Ababa, Ethiopia (UTC+3). Selective about senior roles and high-impact contracts. Remote.