Interview Prep/Terraform/State and Backends in Production

How do other backends handle locking?

BeginnerProductionState and Backends in Production
Answer

azurerm uses blob leases, gcs writes a lock object next to the state, pg uses advisory locks, GitLab-managed state uses its HTTP API and HCP Terraform locks per workspace and run queue. The commands are the same everywhere; the difference is in what to monitor and how to break a stale lock.

All Terraform questions Roadmap: Terraform in production

More on State and Backends in Production