← Back to work

Electronic components distribution / In Production

ERP back office & e-commerce

Took ownership of an inherited ERP and a 3.7 million-product storefront. Built approval-gated releases with origin health checks and automatic rollback, then diagnosed and fixed an outage hidden by CDN caching.

Lead engineer and release owner at Luna Software Solutions

Products in the storefront catalogue
3.7 million
Origin outage uncovered
45 hours

The problem

An electronic-components distributor relied on an inherited back office for purchasing, receiving, stock and invoicing. Storefront releases were manual, and the availability check went through the CDN, which could serve cached pages while the application server was down.

What I built

Approval-gated releases

I built an Azure DevOps pipeline that previews changes, asks for approval, backs up the IIS deployment, checks the origin directly and rolls back automatically if the health check fails. I rehearsed it on a separate IIS site before production.

Outage investigation and recovery

The origin check exposed a 45-hour outage. I correlated the application log with Windows events, traced the failure to a plugin file lock during an IIS recycle, restored service and verified the code fix through a subsequent restart.

Purchasing and inventory integrity

I changed purchase-order receipt totals to be recalculated from the underlying receipts so retries could not inflate quantities. I added optimistic concurrency to stop competing pick-slip updates from silently overwriting one another.

Architecture and trade-offs

The back office uses ASP.NET Core MVC, Vue and SQL Server, with Hangfire and SignalR for long-running operations. The storefront runs on nopCommerce and IIS.

The release pipeline defaults to adding and updating files so it preserves plugins managed outside the repository. That makes intentional deletions a separate review decision. On a single IIS host, backups and automated rollback offered a practical recovery path.

Outcome

  • The first failed production deployment rolled back automatically. I used that failure to improve copy-step error reporting and process shutdown checks.
  • Direct origin checks surfaced a 45-hour outage that public-page monitoring had missed.
  • I turned recurring production issues into a phased modernisation roadmap covering release safety, reliability and the move to .NET 10.