A canary release routes a small percentage of traffic to a new version while the majority hits the stable version -- key metrics are monitored closely, and traffic is gradually shifted further if healthy, or rolled back immediately if problems appear, limiting exposure to a small user subset.
A feature flag is a runtime conditional determining whether code executes, letting a feature deploy dormant and be enabled gradually without a new deployment -- decoupling deploying code from releasing features, enabling instant rollback by flipping the flag off.
A team rolls out a redesigned checkout behind a flag enabled first for employees, then 1%, 10%, and 100% of customers, able to instantly disable it if conversion rates dropped.
Likely follow-ups
How do flags managed via a service like LaunchDarkly differ from a hand-rolled environment-variable flag?
What's the maintenance burden of flags left in the codebase long after a feature fully rolls out?
Architecture & Design PatternsTesting with JestMocha & the Node Test Runner
Observability is a system's property of exposing enough internal state that engineers can diagnose novel, unanticipated problems from external outputs -- the three pillars are logs (discrete events), metrics (aggregated numerical measurements), and traces (following a request's path across distributed services).
A team investigating a latency spike uses distributed tracing to follow slow requests across five microservices, finding the delay originates from a single downstream call dashboards alone hadn't surfaced.
Likely follow-ups
How does observability differ practically from having lots of dashboards and alerts?
What tools like OpenTelemetry provide a vendor-neutral way to instrument all three pillars?
A container registry stores and versions built Docker images -- after CI builds and tags an image, it's pushed to the registry, from which the deployment target pulls the specific tagged version to run, providing a consistent, immutable artifact identical across every environment.
A .dockerignore file excludes files -- most importantly node_modules, .env files, and local build artifacts -- from being copied into a Docker build context, keeping images smaller and preventing accidentally baking local secrets or a platform-specific node_modules into a production image.
Example
node_modules
npm-debug.log
.env
.git
coverage
Real-world example
A team's Docker images failed on a different CPU architecture until adding .dockerignore excluding node_modules, forcing 'npm ci' inside the build to install correctly-architected dependencies.
Likely follow-ups
Why can copying a local node_modules folder into a Docker image cause native-module compatibility issues?
What other sensitive files should always be excluded from a build context?