upstream and downstream
Directions along a chain: upstream is what you depend on or receive from, and downstream is what depends on you or receives from you.
In more detail
In a build, the schemas package is upstream of the apps that use it, so a change there forces downstream rebuilds. In a request, a service calls downstream services, and an outage downstream can ripple back up unless it is contained.
Related terms
- dependency — Anything a program needs in order to work, such as a library, a tool or another service.
- task graph — A map of which build tasks depend on which others, used to decide what must run first and what can run at the same time.
- cascading failure — A failure in one part of a system that overloads or breaks the parts around it, spreading until much more is down.
Taught in
- Monorepo Architecture: Workspaces & Turborepo — Production Full-Stack Engineering
- Unified Build Pipelines: Caching & Dependency Graphs — Production Full-Stack Engineering
- API Gateway & BFF Patterns: Backend-for-Frontend — Production Full-Stack Engineering
- Resilience Engineering: Circuit Breakers & Retries — Production Full-Stack Engineering