Skip to content

Workflows

This page describes recommended workflows for working locally during development.

The goal is to help developers choose the right level of local setup, work efficiently, and avoid unnecessary complexity.

Not all development work requires the same local setup.

Before starting, consider:

  • What are you changing?
  • Which services are affected?
  • Do you need real data or only logic validation?

Choosing the simplest workflow that solves the task is usually the best option.

In some cases, a full local environment is not required.

This is typically sufficient when:

  • Working on frontend applications that consume shared APIs
  • Making small backend changes that do not affect data access
  • Updating configuration, documentation, or non-runtime code

Using shared development environments can be faster and reduce setup overhead.

For many backend changes, it is enough to run only the service you are working on locally.

This workflow is useful when:

  • Developing business logic
  • Debugging request handling
  • Writing or running tests

Dependencies can often be mocked or accessed via shared environments.

When changes affect integrations or data access, local dependencies may be required.

Typical examples:

  • Schema or migration changes
  • Data-related bugs
  • Service-to-service interactions

In these cases, running local databases or supporting services helps reduce risk and improve confidence before merging.

Reproducing issues from shared environments

Section titled “Reproducing issues from shared environments”

Local environments are often used to reproduce issues observed in test or production.

Recommended approach:

  • Understand the issue and affected components
  • Copy only the data needed to reproduce the problem
  • Reproduce the issue locally in isolation
  • Validate the fix locally before deploying

Avoid experimenting directly in shared environments.

Local debugging should be used to:

  • Step through code execution
  • Inspect runtime state
  • Validate assumptions about data and behavior

Guidelines:

  • Prefer local debugging over logging in shared environments
  • Use logging to support debugging, not replace it
  • Remove excessive debug logging before merging

Fast feedback is key to productive development.

To keep feedback loops short:

  • Prefer simple setups when possible
  • Reset local state instead of patching broken environments
  • Automate repetitive steps where feasible

Local development is not always the best option.

Avoid relying on local environments when:

  • Validating behavior that depends on shared infrastructure
  • Investigating issues caused by environment-specific configuration
  • Verifying production-only integrations

In these cases, use appropriate test or staging environments instead.

  • Choose the simplest workflow that solves the task
  • Add local components only when they provide clear value
  • Use local environments to debug, reproduce, and validate safely
  • Keep local workflows fast, resettable, and predictable