Microservices vs Modular Monolith: How to Choose
Microservices vs modular monolith: what each means, the Prime Video lesson, and five criteria to choose the right architecture.
A reference pipeline for ECUs, cockpits, robots and drones, with HIL rigs that behave like cloud runners.
In short
CI/CD for embedded software is what lets automotive and robotics teams release often without breaking things they cannot easily fix later. Cloud teams deploy many times a day because every change is tested automatically. Embedded teams face a harder problem: the code must be tested on the actual chip, with the actual sensors and buses, under real timing. This guide explains how mature teams build that pipeline, including hardware-in-the-loop testing.
| Level | What runs | Speed | What it catches |
|---|---|---|---|
| Unit tests on host | Code compiled for a PC | Seconds | Logic errors |
| Model-in-the-loop (MIL) | Control models in simulation | Minutes | Algorithm design errors |
| Software-in-the-loop (SIL) | Production code against simulated environment | Minutes | Integration and behaviour errors |
| Hardware-in-the-loop (HIL) | Real ECU or computer connected to a real-time simulator | Minutes to hours | Timing, drivers, buses, hardware interaction |
| Vehicle or field test | Real car, robot or drone | Hours to days | Everything else |
HIL testing means testing real ECUs in a realistic simulated environment; because the tests are reproducible and automated, they can run around the clock and shorten validation (dSPACE). In the classic V-model, HIL sits between software-in-the-loop and full system integration; the simulator must finish each step within a fixed time, often 0.1 to 1 millisecond for automotive or aerospace (IEEE).
For in-car displays, HIL tests also press buttons and check screens: a robot finger or relay presses a physical control, a camera or frame grabber checks that the display updated, and a bus simulator feeds speed, gear and media signals. With Euro NCAP 2026 rewarding physical controls, these end-to-end checks matter more. See Euro NCAP 2026 HMI rules.
From our work
On one automotive programme, our team met 6 of 6 hard deadlines while supporting quarterly releases (case study). As an automotive HMI development partner, we build in-car infotainment on Android Automotive OS: media apps and sources, Bluetooth, USB, phone projection and companion apps.
| Area | Typical tools |
|---|---|
| CI servers | Jenkins, GitLab CI, GitHub Actions with self-hosted runners, Zuul |
| Builds | CMake, Bazel, Yocto/BitBake, Gradle for Android Automotive, Docker build containers |
| Code quality | clang-tidy, cppcheck, MISRA checkers, SonarQube, coverage with gcov/llvm-cov |
| Test frameworks | GoogleTest, pytest, Robot Framework, Squish for GUI, Espresso on Android |
| Hardware labs | dSPACE and NI HIL systems, Vector CANoe, LAVA, labgrid, programmable power supplies |
| Simulation | QEMU, virtual ECUs, Gazebo or Isaac Sim for robots, CARLA for driving scenarios |
The same principles apply to robots and drones: simulate first, then test on real hardware in a controlled lab, then in the field. For robotics simulation, see Gazebo vs Isaac Sim; for the mobile side of delivery, mobile DevOps from commit to App Store.
Testing real ECUs or computers connected to a real-time simulator of the vehicle or machine around them.
Software-in-the-loop runs production code against a simulation on ordinary computers; HIL uses the real target hardware.
Yes, with a scheduler that queues jobs, flashes rigs, captures logs and releases rigs automatically.
Track pass rates per test, quarantine flaky ones and fix root causes such as timing, wiring or test data.
Send a few lines about the product, the deadline and the team you have today. A senior engineer replies within two working days.