Build Systems & Monorepos
Studies in this cluster, in series order. Each one keeps its own URL.
DevOps
Kubernetes workloads, CI/CD pipelines, artifact digests, supply-chain controls, Git rebase, merge, and recovery, and Terraform state, modules, and safe change you can defend in interviews.
Build Systems & Monorepos
6 studies- 1.Build Systems & Monorepos - Graphs, Caching, Hermeticity & Reproducible EnvironmentsConcept hub: a build is a function over a dependency graph; the four properties (correctness, incrementality, caching, hermeticity) and how they stack; task runner vs build system vs package/environment manager; what Turborepo, Nx, Bazel and Nix share and where they differ; runnable mini build function and graph-granularity demo; decision chart.
- 2.Dependency Graphs & Incremental Builds - Task DAGs, Topological Scheduling, Content Hashing & Affected DetectionPackage vs task vs action graphs; topological waves and the critical path; mtime vs content hash vs verifying and constructive traces; early cutoff; runnable Python mini build engine (topo sort, three rebuilders, cycle error) and TS monorepo task engine with affected detection; static vs dynamic dependencies and the Build Systems a la Carte grid.
- 3.Content-Addressed Caching - Cache Keys, Remote Cache, Remote Execution & PoisoningWhat goes into a cache key; undeclared env var wrong-cache-hit demo and the strict-env fix (runnable); local vs remote cache vs remote execution (REAPI CAS + action cache); constructive vs deep traces; cache economics and the critical-path floor (runnable); poisoning table incl. untrusted writers; caching decision chart.
- 4.Hermeticity & Reproducible Builds - Sandboxes, Pinned Toolchains, the Nix Store & Bit-for-Bit OutputPinned vs hermetic vs deterministic vs reproducible; sources of non-reproducibility; SOURCE_DATE_EPOCH archive demo (runnable); the Nix model (derivations, store paths, closures, substituters, input- vs content-addressed) with a store-path demo (runnable); lockfiles vs Docker vs Bazel sandboxes vs Nix/Guix; SBOMs and provenance.
- 5.Monorepo vs Polyrepo - Workspaces, Package Boundaries, Versioning & CI Fan-outMonorepo vs polyrepo trade-offs; workspaces as the base layer and task runners vs build systems on top; boundaries (tags, visibility, exports, CODEOWNERS) with a runnable boundary + CI fan-out + owners demo; fixed vs independent versioning with changesets (runnable); CI fan-out by scale from Turborepo-size repos to Google-scale.
- 6.Dependency Resolution & Dev Environments - SemVer, SAT vs MVS, Lockfiles, Nix Shells & DevcontainersSemVer and range styles per ecosystem; search (PubGrub/SAT) vs MVS vs nested copies with a runnable diamond demo; lockfiles across ecosystems and integrity hashes (runnable); hoisting and phantom deps; Nix shells vs devcontainers vs mise/asdf vs Docker; works-on-my-machine diagnosis; interview Q&A.