Skip to content
Virendra VyasSenior full-stack .NET engineer
In production

DeviceHub

Leading a team of five on an IoT device management and access-control platform: role-based access control, real-time messaging, field hardware, security fixes and a zero-incident .NET 7 to .NET 10 migration.

Role
Lead Software Engineer, leading five engineers
Context
Datascope Systems Ltd, employed
When
August 2022 to present

Technologies

  • C#
  • .NET 8 and 10
  • ASP.NET Core
  • EF Core
  • React
  • TypeScript
  • Azure
  • Azure Service Bus
  • NATS
  • Docker
  • balena
  • Terraform
  • xUnit
  • Moq
Where it sits in my career: Lead Software Engineer, Datascope Systems Ltd, August 2022 to present (employed)

Context

DeviceHub is an IoT device management and access-control platform. It runs live, with devices in the field. I lead a team of five engineers on it and own delivery end to end, from breaking down requirements through to release and production support.

This is employed work, so I describe it in general terms: no customer names, internal systems or code.

Architecture

DeviceHub architecture diagram
Text description of the diagram

Requests flow from the React app to the backend-for-frontend, then to the core API, then to the database. The React app has an AuthContext with a can() helper that drives permission-driven UI. The backend-for-frontend and the core API both enforce permissions, using JWT bearer authentication and a dedicated authorisation library. Roles and permissions live in the database and are managed through EF Core migrations.

Open the diagram full size

What I did

Role-based access control

I designed and built a full role-based access control system, enforced on both the server and the client.

  • JWT bearer authentication.
  • A dedicated authorisation library.
  • Roles and permissions stored in the database and managed through EF Core migrations.
  • Enforcement in both the backend-for-frontend and the core API.
  • A React AuthContext with a can() helper, so the UI shows only what a user is allowed to do.

Real-time and event-driven messaging

For real-time device communication I evaluated NATS against MQTT, WebSocket and server-sent events. I chose NATS and built a .NET publisher to React receiver proof of concept, including reconnection handling.

I have also built event-driven processing on Azure Service Bus with idempotent message handling, dead-letter handling and retry policies.

Field hardware

  • Got an access-control kiosk display running on Raspberry Pi devices in the field, deployed as containers through balena, which I built.
  • Diagnosed GPU driver, display configuration and framebuffer faults on those devices.
  • Solved a network isolation problem by moving device messaging onto the device itself.
  • Replaced manual display configuration on each device with fleet-level deployment settings.

Security

I found and fixed four critical vulnerabilities in the live system before any of them were exploited. They covered authentication, tenant isolation, a race condition, and a permission check that failed open, which I changed to default-deny.

Zero-incident .NET 7 to .NET 10 migration

I led the migration of the live platform from .NET 7 to .NET 10 through staged, test-driven delivery rather than a single rewrite. It went out with zero incidents.

  • Handled the breaking changes in Ardalis.Specification v9.
  • Removed sync-over-async anti-patterns.
  • Cleaned up duplicate dependency injection registrations.
  • Centralised shared build settings in Directory.Build.props.

People and process

  • Own code review and engineering standards for the team, with sprint-level architecture reviews.
  • Built an xUnit and Moq testing culture and introduced CI/CD.
  • Mentored two engineers from mid-level to senior level.
  • Work directly with business stakeholders to turn requirements into estimated work.
  • Use Claude Code daily, and introduced it across the team, including AI-assisted code review.

Outcome

  • Test coverage from roughly 40 to 85 percent in two sprints.
  • Regression defects down about 35 percent after introducing CI/CD.
  • Releases moved from weekly to daily.
  • A zero-incident migration from .NET 7 to .NET 10.
  • Four critical vulnerabilities fixed before exploitation.

Status

DeviceHub is in production and in active development. I still lead the team.