Is it wrong to say that for 95% of the internet that isn’t FAANG, bazel is a solution in search of a problem? I’ve never once seen or used a build system so unnecessarily complex. If you’re a 100k software company it makes a lot of sense to build in complexity but for the majority of the internet, why is something like Bazel any better than existing, simpler build tools?
jmmv•4w ago
Bazel is complex, yes, and in my opinion not suitable for small, one language projects.
But I’ve seen many builds, outside of FAANG, that are too slow and that also break frequently after a simple “git pull”. Which other systems promise to improve those, and how do they do it?
hansvm•2h ago
Bazel solves a ton of problems other systems don't, but it introduces a ton of its own. If you can afford (or are currently accidentally affording) 2-3 FTEs managing builds, that's all you need to scale Bazel indefinitely and solve basically all of the rest of your build problems. If you can't afford a dedicated Bazel team then it's absolutely not worth using on anything more than a single "team" (people talking to each other every day, a dedicated Bazel xoogler, probably 5-13 people).
As to the actual "why", even little things like BUILD files requiring you to enumerate dependency graphs gives you a leg up that you _can_ implement in other build systems, but likely won't. Whether you're a "monorepo" or not, you still have all your code living _somewhere_ as a monorepo, and the only question is how good your tooling is. How easy is it in your system to "run all tests properly depending on the set of changed files"? That's easy in Bazel and hard in every other solution I've seen (possible of course, but those sorts of constraints aren't the happy path for other build systems, so teams don't tend to build that way without a very solid lead imposing that strategy).
SlightlyLeftPad•4w ago
jmmv•4w ago
But I’ve seen many builds, outside of FAANG, that are too slow and that also break frequently after a simple “git pull”. Which other systems promise to improve those, and how do they do it?
hansvm•2h ago
As to the actual "why", even little things like BUILD files requiring you to enumerate dependency graphs gives you a leg up that you _can_ implement in other build systems, but likely won't. Whether you're a "monorepo" or not, you still have all your code living _somewhere_ as a monorepo, and the only question is how good your tooling is. How easy is it in your system to "run all tests properly depending on the set of changed files"? That's easy in Bazel and hard in every other solution I've seen (possible of course, but those sorts of constraints aren't the happy path for other build systems, so teams don't tend to build that way without a very solid lead imposing that strategy).