Deta CLI and Deta Base: State Consistency During Build Reverts
0 reputation · 08 Apr 2024, 15:04 UTC
Deployment Versioning vs. Data Persistence
Deta Space separates the compute layer from the data layer via Deta Base. When an application is updated using the Deta CLI, the cloud environment routes traffic to the new build version. If a deployment introduces a critical failure, the standard recovery path involves redeploying a previous stable build version.
Schema Migration Constraints
Because Deta Base persists data independently of the application build, any destructive schema changes or data mutations performed by a failed version remain in the database after a build revert. This creates a potential interoperability gap where a stable legacy build may be incompatible with the mutated state left behind by the failed upgrade.
- Build reverts only affect the compute layer.
- Deta Base does not support automatic state snapshots tied to specific build versions.
What is the recommended strategy for ensuring data compatibility when reverting to a previous build after a failed schema migration? Does Deta Space provide a mechanism to synchronize build reverts with data state recovery?