Modern backend applications rely on a common set of infrastructure primitives for most of the behavior. To improve your development workflow, Encore's Infrastructure SDK provides a declarative way of using them directly in application code. This comes with several benefits:
- Develop new features locally as if the infrastructure is already set up: Encore automatically compiles your app and sets up the necessary infrastructure on the fly.
- No manual maintenance required: There is no need to manually write IaC configuration, like Terraform, and no need to maintain configuration for multiple environments manually. Encore uses your application code as the single source of truth and automatically keeps all environments in sync.
- One codebase for all environments: Encore automatically provisions your local, preview, and cloud environments (using your own cloud account).
- Cloud-agnostic by default: The Infrastructure SDK is an abstraction layer on top of the cloud provider's APIs, so you avoid becoming locked in to a single cloud.
- Evolve infrastructure without code changes: As your requirements evolve, you can change and configure the provisioned infrastructure by using Encore's Cloud Dashboard or your cloud provider's console.
See how to use each primitive:
While most requirements are met by a common set of infrastructure primitives, sooner or later you will likely need something highly specific to your problem domain. Encore is designed to ensure you can use any cloud infrastructure, even if it's not built into Encore's Infrastructure SDK. This works seamlessly since Encore provisions infrastructure in your own cloud account, so you can use any of your cloud provider's services as you traditionally would.