Operating Hybrid Environments During Migration
This lesson explains how coexistence makes on-premises and AWS environments behave as one network, one namespace and one identity domain during migrations that take months or years.
Learning outcomes
After completing this lesson, you will be able to:
- Identify what must work across both environments.
- Explain how latency between migrated and remaining components is managed.
- Describe how two environments are operated side by side.
What must work across both environments
During a migration, some systems are in AWS and some still on premises, often for months, and four things must work across both. The network connects them through Direct Connect or Site-to-Site VPN with a transit gateway, and needs address plans that do not overlap. DNS uses Route 53 Resolver inbound and outbound endpoints with forwarding rules, so each side resolves the other's names. Identity uses AWS Managed Microsoft AD with a trust, or AD Connector, so migrated servers can join the domain and users keep their credentials. Shared data uses Storage Gateway, FSx File Gateway or replicated file systems for files both sides use. The following table summarises the foundations.
| Need | Services |
|---|---|
| Network | Direct Connect or Site-to-Site VPN, Transit Gateway, non-overlapping address plans |
| DNS | Route 53 Resolver inbound and outbound endpoints with forwarding rules, so both sides resolve each other's names |
| Identity | AWS Managed Microsoft AD with a trust, or AD Connector, so servers can join the domain and users keep their credentials |
| Shared data | Storage Gateway, FSx File Gateway or replicated file systems for files both sides use |
Latency and dependencies
Migration changes the latency between components. Calls that were local in the data centre now cross a WAN link, adding milliseconds to each round trip, and a chatty application that makes hundreds of calls per request can slow dramatically even though each call is only slightly slower. Wave planning therefore groups tightly coupled applications, so that chatty dependencies do not cross the link longer than necessary.
Where a dependency must stay behind, caching its data, integrating with it asynchronously or moving it in an earlier wave reduces the impact. Because more traffic crosses the hybrid link with every wave, its latency and utilisation are monitored, for example with CloudWatch Network Monitor, so capacity is added before the link becomes a bottleneck.
Operating two environments
For the duration of the migration, two environments are operated side by side. Monitoring, patching and backup extend to both, and Systems Manager hybrid nodes let servers that remain on premises be managed with the same tools as those in AWS. Firewall rules on premises and security groups in AWS are kept aligned, so that a flow allowed on one side is not silently blocked on the other.
The end state is planned from the start: when the last dependency moves, the hybrid DNS rules, directory trusts and network links that are no longer needed are decommissioned, rather than left in place as unmonitored paths between environments.
A company has migrated its web tier to AWS, but the ERP system it calls will stay on premises for another year. Users report that pages which call the ERP several times now take seconds longer to load. The link is a 1 Gbps Direct Connect with 25 ms round-trip latency.
Each page makes about 40 sequential ERP calls, which adds a second of latency across the link. The improvements are to cache reference data from the ERP in ElastiCache, batch or parallelise the remaining calls, and move ERP-dependent background work to asynchronous processing through SQS. Longer term, the wave plan should move the ERP or its integration layer sooner.
What must work across both environments while a migration is in progress?
Show answer
Identity, DNS resolution, network connectivity, monitoring, and the dependencies between applications that move in different waves.
Exam Tips
Remember for the exam
- Hybrid DNS, connectivity and identity let migrated and remaining applications coexist.
- Route 53 Resolver endpoints let both environments resolve each other's names.
- Chatty dependencies across the WAN add latency; keep them in the same wave or cache their data.
- Manage servers on both sides with Systems Manager hybrid nodes.
- Remove hybrid DNS rules, trusts and links once the last dependency has moved.