Why Hardware Projects Need a Microservice Architecture
Published on March 15, 2026 · 5 min read
The instinct on most embedded projects is to write one large firmware that handles everything: protocol parsing, business logic, error recovery, logging. It ships. It works. Until the hardware changes, a new protocol gets added, or a regression hunt takes three days instead of three hours.
The Multi-Protocol Problem
At Volthium, the challenge was real: a fleet of 300+ lithium-ion batteries, each requiring production tests — including destructive tests — over CAN, UART, Ethernet, and Bluetooth simultaneously. A monolithic service would have meant shared state between four fundamentally different communication patterns, test logic entangled with protocol adapters, and debugging sessions measured in days.
The Microservice Split
The architecture we built separated concerns cleanly:
- •Protocol adapters (one per interface: CAN, UART, Ethernet, Bluetooth) — each owns its transport and exposes a normalized message bus.
- •Emulator service — replays known-good traffic for regression testing without physical hardware.
- •Test orchestrator — sequences tests, collects results, decides pass/fail.
- •Regression engine — compares results against a snapshot baseline and flags deviations automatically.
Each service communicates over a local message bus. Adding a new protocol means writing a new adapter without touching orchestration. A regression in the CAN stack only affects the CAN adapter service — the rest of the system keeps running.
The SmartBridge Embedded Firmware
On the embedded side, the STM32-based SmartBridge firmware acts as the hardware gateway: it aggregates data from all physical interfaces and exposes a single normalized stream to the software services. The bridge pattern kept the embedded code focused on hardware reliability — real-time guarantees, error recovery, watchdog timers — while the PC-side services handled test logic.
The Unexpected Win: the Proprietary Chip
Midway through the project, we hit a reprogramming issue with a proprietary Chinese chip embedded in the battery management system. Because the CAN adapter was isolated, we could instrument and reproduce the bug without touching any other part of the system — something impossible in a monolithic design. The isolation paid for itself on a single debugging session.
When This Architecture Applies
- •Your product talks multiple protocols simultaneously.
- •You need reproducible regression testing as hardware evolves.
- •Your embedded team and software team work in parallel.
- •You need to simulate hardware in a CI pipeline.
The investment in microservice architecture pays back double on the first major hardware revision. If that describes your project, reach out.
Paul Brûlé Bareil — PhD in Physics, President of Innovation Codotek inc.