Before the 2027 Budget, Should You Migrate the Application or Database First?

Migration planning guidance identifies workload dependencies as an input to migration grouping and sequence (official planning overview). The first useful data point for your decision is therefore concrete: can the target application reliably reach and use the database while they are in different environments? If the answer is no, plan them together. If cross-environment access and consistent writes are proven, a staged move may work. Do not choose “application first” or “database first” by rule of thumb.

Who should use this guide: CTOs and technical leads deciding the scope and waves for cloud repatriation.
Database owners assessing synchronization, write cutover, and recovery.
Operations leads coordinating dependencies, validation, and rollback ownership.

Start with dependencies, not the migration order

“Application” and “database” are not isolated boxes. The application may depend on a database endpoint, credentials, network rules, scheduled jobs, message queues, caches, or other services. The database may also serve other applications, reporting tasks, and operational tools that are not obvious from the main service diagram.

That makes the application and database migration order a result of dependency discovery, not a decision to make in advance. Official guidance on wave planning also treats application dependencies as relevant to grouping workloads (wave-planning guidance). Use your own architecture and observed traffic to determine which components must move together.

Start by collecting evidence from several places:

A repository search can reveal configured endpoints, but it cannot prove that you have found every caller. Compare configuration with runtime evidence and ask each service owner to confirm how the application is used. Official workload assessment guidance likewise emphasizes evaluating workload relationships and constraints rather than treating a server as a standalone migration unit (workload assessment guidance).

Can you move the application while its database stays in the cloud?

Possibly, but only if the application can continue to reach the source database under the target environment’s actual network, authentication, and security rules. Do not assume that a target server can use the same private address, DNS resolution, or network path as a cloud-hosted application.

Test the real path from the target environment. For a PostgreSQL service, for example, use a temporary application configuration and verify both name resolution and database readiness:

getent hosts "$DB_HOST"
pg_isready -h "$DB_HOST" -p "$DB_PORT"

An illustrative result might look like:

db.internal.example resolves to an address
database system is accepting connections

This check is a starting point, not a migration approval. Confirm that the application can authenticate, perform representative reads and writes, handle connection interruption, and reconnect safely. Test from the same network location and with the same access controls that the migrated service will use.

If the target cannot maintain a dependable connection to the cloud database, an application-first move is not a safe default. Either remove the dependency, establish and verify a suitable connection, or plan the application and database as a coordinated wave.

Prove the data path before planning a split

A network connection does not prove that a database can be moved separately. You also need to understand who can write, how changes are captured, and how you will establish a single authoritative database at cutover.

Document the current read and write paths. Include background workers, scheduled tasks, administrative scripts, integrations, and reporting systems. A service that appears read-only may still trigger writes through a worker or stored procedure.

For each proposed migration approach, answer these questions:

The last question is central. If both environments accept writes, you need an explicit conflict strategy and a way to prove that it works. If the migration plan depends on stopping writes, define how the application, workers, and other clients will be paused and how you will confirm that they have stopped.

Do not treat a completed export or replication setup as proof of consistency. Define checks that fit the workload: row counts for selected tables, application-level totals, checksums where appropriate, and validation of recent records or business transactions. Record the results and agree on acceptable discrepancies before the cutover. The right checks depend on your schema and data model; a generic command cannot establish business correctness.

A database that has accepted new production writes changes the rollback problem. Restoring the old application alone does not put those writes back into the old database.

Official migration planning guidance recommends assessing dependencies and migration strategies as part of a workload plan, but it does not certify an individual synchronization design. Treat any proposed replication or export method as an assumption until you have rehearsed it with your actual data and write pattern (migration planning guidance).

What if the database moves first and the application cannot connect?

Do not cut application traffic over until the target database endpoint, credentials, certificates, routing, and access rules have been tested from the application environment. If the application still points to the old endpoint, or if the new endpoint is not resolvable or reachable, the service may fail even when the database itself is healthy.

Keep a verified connection configuration for the existing environment until the new path passes validation. If a connection failure occurs during rehearsal, stop the cutover and identify the failed layer:

Use logs from both ends. A client-side connection error alone may not distinguish a DNS problem from a rejected credential or blocked route. Keep the database owner and the network or operations owner involved so that the team can identify the actual fault rather than changing settings by guesswork.

Treat cross-environment connectivity as a condition to prove

Cross-environment communication may be needed only during a migration window, or it may remain part of the intended design. These are different operating decisions. A temporary connection used for a rehearsed cutover is not automatically suitable for long-term production traffic.

Check the full path, not just whether a port appears open. Confirm name resolution, routing, access control, TLS, connection limits, latency under representative load, and behavior during a network interruption. Record what you tested, from where, with which credentials, and what happened when the connection was interrupted.

The decision is simple:

A successful connection test at one moment does not establish ongoing reliability. For a staged plan, decide who monitors the path, who responds to a failure, and how the system will behave if the connection is lost. Do not leave these tasks as implicit responsibilities.

Match migration scope to business risk and rollback

The best sequence is the one your team can validate and recover from. A low-impact internal service with clear dependencies may be suitable for a staged move. A customer-facing system with several writers and a narrow maintenance window may need a coordinated cutover—or more preparation before any move.

Assess the operational facts before assigning a wave:

Rollback must describe the state of both application and data. If the new database has received writes, switching traffic back to the old application may expose stale data or cause writes to diverge. Define whether you will reverse changes, copy them back, keep the target authoritative while repairing the application, or use another tested recovery method. Do not promise that a rollback is safe until the team has rehearsed the path for the actual write pattern.

Migration assessment guidance is intended to inform planning, not replace application-specific tests. Use the official portfolio analysis material as a planning reference, then verify its assumptions against your own dependencies, data paths, and owners (portfolio analysis guidance).

Compare the candidate plans before committing a wave

Use the same review period for each candidate. Include cloud charges that continue during parallel operation, engineering and validation effort, target infrastructure, data transfer, backup arrangements, and the ongoing responsibility your team will own. Do not treat the current cloud bill as the savings figure: some services may remain in use, while other costs can shift to networking, storage, monitoring, or staff time.

Candidate plan Choose it when Main assumption to verify Typical reason to pause
Move application and database together They are tightly coupled, or a reliable cross-environment connection and data plan are not available The coordinated cutover and recovery path have been rehearsed No tested way to validate data or restore service
Move the application first The target application can securely and reliably use the source database, and the split is operationally acceptable Connectivity, authentication, application behavior, and ongoing network ownership are proven Network path is fragile, costly, or undocumented
Move the database first The target database can be validated independently and the application can switch endpoints safely Data synchronization, consistency checks, and application connection changes are ready The old and new databases could accept conflicting writes
Defer migration Dependencies, ownership, data correctness, or recovery remain unclear A specific gap can be resolved and retested The move depends on unverified assumptions

Keep the assumptions visible in the budget review. For cost comparison, record actual charges from the relevant cloud account and period, then add the target server and operating responsibilities for the same period. Use the current NetAmd product table for any NetAmd amount or configuration; do not substitute an estimate from a different region, service, or billing arrangement.

Can the application and database move in separate waves?

They can when each phase has a stable operating state, not merely because separate waves look easier to schedule. The application must work across environments for the period it remains separated from the database. The data migration must preserve the intended write history. The team must also know how to recover from failure at every intermediate state.

If any of these conditions is unproven, plan them as one coordinated migration scope. That does not mean the cutover must happen in a single untested action. It means the plan should treat the application and database as dependent parts of the same outcome, with rehearsed checkpoints and an agreed recovery decision.

Use a review checklist to approve the order

Use this checklist with the application, database, and operations owners. Mark an item complete only when there is evidence someone else can review.

If a critical item remains unverified, choose “defer” or reduce the migration scope. A decision table is useful only when its assumptions are supported by test results and accountable owners.

Separate migration order from server suitability

A conclusion that the application and database should move together does not prove that an independent server is the right destination. Assess that separately. Check the operating systems and database versions you need, storage layout, network capacity, backup design, monitoring, and who will respond to hardware or operating-system issues.

For example, NetAmd lists an AMD EPYC 7543P configuration with 32 cores and 64 threads, 128 GB or 256 GB of ECC memory, two directly attached 1 TB NVMe drives, and bandwidth options of 250 Mbps, 1 Gbps, or 2 Gbps with unlimited traffic. Confirm the current configuration and terms on the NetAmd server options page. These specifications describe a destination option; they do not establish that a particular application will meet its performance or availability requirements.

The direct-attached disks are not a substitute for an independent backup. If you plan to use local redundancy, define and test the software RAID arrangement, then maintain an off-machine backup and a restore procedure. A single server also does not provide automatic high availability by itself. Decide how your team will detect failure, restore service, and recover data before assigning a critical production workload to it.

For a more detailed review of file-write durability and safe replacement behavior, see our guide to crash-safe file writes and atomic replacement. That kind of storage behavior is one part of a recovery plan; it does not replace database-specific backup and restore validation.

If your current arrangement depends on elastic capacity, several regions, or managed services that your team does not plan to operate itself, keeping those workloads in the cloud may be the better decision. A physical server is a stronger candidate when demand is steady, the service can run on a defined host, and your team accepts responsibility for backup, monitoring, and recovery.

For the 2027 budget review, take one candidate service through the dependency and cutover checklist before estimating a migration wave. If it passes, compare the complete operating plan—not just the current cloud line items—with an independent AMD server from NetAmd. If the application and database still rely on untested cross-environment access or an unproven write strategy, budget for validation first rather than committing to an order that the system has not earned.

Further reading

Plan Your 2027 Repatriation on Dedicated AMD Servers

Stage your application and database workloads on an entire AMD EPYC 7543P server dedicated to you.

Configure the number of IP addresses for your needs

Each server includes 1 dedicated IPv4 address, with up to 255 additional addresses available. Total due = monthly total × number of months.