---
title: Best Practices
description: Best practices for building secure, scalable, and flexible developer workflows with Pulumi IDP.
url: /docs/idp/guides/best-practices/
---
This section provides proven patterns and foundational frameworks that help you implement best practices with Pulumi IDP. These resources follow industry best practices and have been validated in production environments.

## Core Concepts

Learn the foundational approach for building with Pulumi IDP:

- [Four Factors: Templates, Components, Environments, and Policies](/docs/idp/guides/best-practices/four-factors)

## Patterns

Common architectural patterns and design approaches for organizing your infrastructure code and workflows:

- [IDP Pattern: One ESC environment per service](/docs/idp/guides/best-practices/patterns/one-esc-environment-per-service)
- [IDP Pattern: One ESC environment per team](/docs/idp/guides/best-practices/patterns/one-esc-environment-per-team)
- [IDP Pattern: One ESC environment per lifecycle stage](/docs/idp/guides/best-practices/patterns/one-esc-environment-per-lifecycle-stage)
- [IDP Pattern: Composable environments](/docs/idp/guides/best-practices/patterns/composable-environments)
- [IDP Pattern: Multiple workloads on shared infrastructure](/docs/idp/guides/best-practices/patterns/multiple-workloads-shared-infrastructure)
- [IDP Pattern: Policies as tests](/docs/idp/guides/best-practices/patterns/policies-as-tests)
- [IDP Pattern: Components using other Components](/docs/idp/guides/best-practices/patterns/components-using-other-components)
- [IDP Pattern: Validating Component Inputs using Policy functions](/docs/idp/guides/best-practices/patterns/validating-component-inputs-using-policy-functions)
- [IDP Pattern: Cost control using Components, Policies, and constrained inputs](/docs/idp/guides/best-practices/patterns/cost-control-using-components-policies-constrained-inputs)
- [IDP Pattern: Security Updates using Components](/docs/idp/guides/best-practices/patterns/security-updates-using-components)

## Additional Resources

- [Pulumi IDP Concepts](/docs/idp/concepts)
- [Private Registry](/docs/idp/concepts/private-registry)
