r/devops • • Oct 19 '26

Architecture To monorepo or not?

My startup is in consumer electronics. The product is 1 device with 1-2 peripherals that come with it. Users connect to a mobile app with a backend that does data analysis on what the product measures.

ATM I have 4 repos: a flutter app and a FastAPI backend with sqlite. The embedded side uses PlatformIO+Arduino for the device/hub, and same stack for the peripehrals.

The DevOps is getting unwieldy. On the one side, I'd like everything to be in one place so agents can easily build up a context and CI/CD is not scattered. On the other hand, I hate working with massive project trees and loading up vscode would be a nightmare.

Thoughts? At work I use git submoduels but I was told that's not a monorepo.

41 Upvotes

55 comments sorted by

View all comments

1

u/Kookoombar Oct 19 '26

On the embedded point: the flashed binary is still an artifact, it's just a .bin or .hex rather than an image. Have CI build each firmware target, name the file with the version and git SHA, and publish it somewhere versioned like an S3 bucket or the release assets. Add a small manifest saying which app and backend versions it was tested with, so flashing a device is just pulling a known file.

Whichever repo layout you pick, that artifact step is what keeps releases traceable, and it makes rollbacks a lot less painful when a device is already out in someone's house.