Skip to content

Commit 74c2193

Browse files
authored
[PLEASE SQUASH] Staging lrs & mi link comparison (#33747)
* Staging lrs & mi link comparison * fixing link
1 parent ce84a68 commit 74c2193

File tree

7 files changed

+98
-22
lines changed

7 files changed

+98
-22
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
title: Compare LRS with Managed Instance link
3+
titleSuffix: Azure SQL Managed Instance
4+
description: Compare log replay service (LRS) with the Managed Instance link when migrating to Azure SQL Managed Instance.
5+
author: danimir
6+
ms.author: danil
7+
ms.reviewer: mathoma, randolphwest
8+
ms.date: 04/14/2025
9+
ms.service: azure-sql-managed-instance
10+
ms.subservice: migration
11+
ms.topic: conceptual
12+
ms.custom:
13+
monikerRange: "= azuresql || = azuresql-mi"
14+
---
15+
# Compare LRS with Managed Instance link
16+
[!INCLUDE [appliesto-sqlmi](../includes/appliesto-sqlmi.md)]
17+
18+
This article compares the [Log Replay Service (LRS)](log-replay-service-overview.md) with the [Managed Instance link](managed-instance-link-feature-overview.md) when migrating to [Azure SQL Managed Instance](sql-managed-instance-paas-overview.md).
19+
20+
## Overview
21+
22+
Log Replay Service (LRS) has been used for migrations to Azure SQL Managed Instance since the service launched in November of 2018. Under the hood, LRS relies on the implementation of [log shipping](/sql/database-engine/log-shipping/about-log-shipping-sql-server), which also powers [Azure Database Migration Service (DMS)](/azure/dms/dms-overview), and the [Azure SQL migration extension](/sql/azure-data-studio/extensions/azure-sql-migration-extension) for Azure Data Studio.
23+
24+
In March 2022, the Managed Instance link (MI link) was introduced as a more performant migration option, with a promise of the best possible minimum downtime migration. The Managed Instance link uses [distributed Always On availability group](/sql/database-engine/availability-groups/windows/distributed-availability-groups) technology to replicate data near real-time from SQL Server to Azure SQL Managed Instance. With the link, you can also fall back online *from* SQL Managed Instance *to* SQL Server 2022 or later as a migration insurance policy.
25+
26+
LRS and the MI link complement each other in capabilities, with each technology suiting different business needs. Review the capabilities of each tool to determine which is best to use for migration based on your specific circumstances.
27+
28+
## Compare LRS and MI link
29+
30+
The fundamental difference between LRS and the MI link stems from the underlying technology. Since LRS is based on log shipping, differential and transaction log backups are continuously taken from SQL Server, uploaded to Azure Blob Storage, and restored to SQL Managed Instance. The process isn't real-time, as it takes time to back up files, upload them, and restore them. The performance of LRS is based on the size of the backup chunks.
31+
32+
In contrast, MI link uses Always On availability group technology to send transaction log records in near real-time from SQL Server to SQL Managed Instance, making it a considerably more performant migration solution. However, to configure the MI link, you need to set up a VPN between SQL Server and SQL Managed Instance and open the appropriate ports in the firewall whereas LRS works out of the box by using a public endpoint. LRS can be used for all editions of SQL Server 2008 and later, while MI link can be used for SQL Server 2016 and later, for Standard, Enterprise, and Developer editions only.
33+
34+
A major benefit of the MI link is the ability to perform a reverse migration back to SQL Server 2022 and later, which isn't possible with LRS. Another major benefit of migrating with the MI link is that the database on the SQL Managed Instance can be used for read-only workloads while the migration is in progress. This capability isn't available with LRS, since the database is in a restoring state until the migration is complete. Likewise, when you perform a reverse migration back to SQL Server 2022 and later, the database is accessible for read-only workloads on SQL Server while the migration is in progress.
35+
36+
The following table compares both LRS and MI link in greater detail:
37+
38+
| **Functionality** | **Managed Instance link (MI link)** | **Log Replay Service (LRS)** | **Notes** |
39+
|---|---|---|---|
40+
| **Underlying technology** | Distributed availability groups (AG) | Log shipping | MI link uses a distributed availability group for replication, which is newer and more advanced when compared to the log shipping technology used by LRS. |
41+
| **Replication performance** | Near real-time. | Restores every few minutes. | Replicating data through the MI link is considerably more performant than applying transaction log backups with LRS. |
42+
| **Minimal supported source database** | SQL Server 2016 and above | SQL Server 2008 and above | LRS can support much older SQL Server versions than MI link. |
43+
| **Read-only secondary** | Supported. | Not supported. | While replication is in progress, SQL Managed Instance databases replicated through the link can be used for read-only workloads, which lets you test your migration before the cut over, or use your databases before migrating to Azure. Likewise, when you perform a reverse migration back to SQL Server 2022 and later, the database is accessible for read-only workloads on SQL Server while the migration is in progress. This capability isn't available with LRS. |
44+
| **Replication of TDE encrypted databases** | Yes, requires importing security keys to SQL Managed Instance. | Yes, requires importing security keys to SQL Managed Instance. | The requirement and procedure to migrate the corresponding encryption certificate from SQL Server to SQL managed instance before starting the migration is the same for both migration options. |
45+
| **Network connectivity type** | - Private endpoint <br /> - VPN configured with both inbound and outbound ports | Public endpoint |While MI link provides additional layers of security, and offers a VPN as an option, networking is more difficult to configure compared to LRS. <br /><br /> By default, LRS provides a simplified experience so you can use it immediately without any network or VPN configuration. LRS uses a public endpoint by default, which is less secure than the VPN used with MI link, and it might not satisfy some of the most demanding security requirements since it uses a publicly exposed Azure Blob storage account as an intermediary to save data before it's restored to SQL Managed Instance. While it's possible to use a private endpoint with LRS to make the transmission of data more secure, it increases initial configuration complexity. |
46+
| **Data encryption in transmission** | - Data encrypted with AES, and <br /> - SSL is used for data transmission encryption. | SSL is used for data transmission encryption. | MI link uses an additional data AES encryption layer. SSL is used for transmission of data for migration tools. |
47+
| **Authentication for the replication** | Certificates signed by a trusted authority (CA) | Managed identities or SAS tokens | MI link requires a Certificate Authority (CA) to sign a certificate for authentication. For LRS, using managed identities is more secure than using self-generated SAS tokens. |
48+
| **Impacted by system updates or failover** | No, other than a minimum interruption for a short failover. | - For General Purpose instances, the migration is automatically paused and resumed after interruptions. <br />- For Business Critical instances, the migration process is canceled for interruptions and must be restarted manually. | MI link is resilient and migration isn't impacted by SQL Managed Instance failovers. <br /> <br /> Conversely, LRS migrations are delayed by restarts or failovers of SQL managed instances in the General Purpose service tier, and migration is restarted for instances in the Business Critical service tier. |
49+
| **Replication duration** | Unlimited replication time using the link (months and even years at a time). | LRS job can run up to 30 days. | An MI link can run for an unlimited amount of time.<br /> <br /> LRS is limited to maximum of 30 days of continuous log-shipping, after which the migration is automatically stopped, and needs to be restarted from the beginning. |
50+
| **Type of migration** | True online migration with only a short failover (measured in seconds). | - Online migration with expected downtime during the cutover for the time it takes to restore the last backup file. <br /> - Cutover takes considerably longer for instances in the Business Critical service tier. | MI link is the only solution that offers a minimum downtime solution (<1 minute) for all SQL Managed Instance service tiers. <br /> <br /> With LRS, the last backup file is still restoring during cutover so based on the size of the last backup file and the time it takes to restore it, there could be a significant wait until the database becomes available on SQL Managed Instance. <br /> <br /> When using LRS to migrate to the Business Critical service tier, the migration cutover downtime can be significantly longer, as the entire database must be replicated to the secondary nodes from the primary node before the database is available for workloads on the primary. Depending on the overall database size, replication to the other nodes, and therefore downtime, can sometimes take hours. <br /> <br /> As such, databases can come online considerably slower with LRS than with the MI link, which can be almost instantaneous. |
51+
| **Maintenance required on source** | Yes, regular transaction log backups. | No. | MI link requires regular transaction log backups of the source SQL Server instance during the migration to truncate the transaction log and prevent running out of disk space. <br /> <br />Conversely, no maintenance is required for LRS. |
52+
| **Resiliency** | Automatically resumes link replication if SQL Server restarts. | - Migration stalls if there's a broken backup chain, or an incorrectly specified last backup file. <br /> - Doesn't support backup files from multiple databases in the same folder (migration fails). | MI link is more resilient than LRS because replication automatically resumes after issues (such as unexpected downtime, upgrades, loss of network connectivity, and many others) have been resolved. In addition, MI link is resilient to SQL MI failovers, or service updates. <br /> <br /> Certain conditions result in LRS stalling. LRS migration is automatically restarted if migration to the General Purpose service tier is interrupted, but needs to be restarted if a migration to the Business Critical service tier is interrupted. |
53+
| **Reverse migration from SQL MI back to SQL Server** | Offline and online migration back to SQL Server 2022 and above is supported. | Not supported. | MI link is the only solution that offers online and offline reverse migration to SQL Server 2022 and later versions - reverse migration isn't available for older versions of SQL Server. |
54+
55+
56+
## What to choose?
57+
58+
The choice between LRS and the MI link depends on your circumstances and business needs. The notable difference between the migration solutions is performance. LRS has a simpler initial setup, which allows you to migrate quickly. While the initial configuration for MI link is more complex, it provides greater resiliency, security, and flexibility.
59+
60+
Additionally, the cutover time is considerably shorter with MI link, which is a significant advantage for many customers. In fact, the potentially considerable downtime when migrating to the Business Critical service tier with LRS is why the MI link is referred to as the only "true online" migration to the Business Critical service tier.
61+
62+
Finally, if you need your database accessible for read-only workloads on the migration target while the migration is in progress, or if you need to perform a reverse migration back to SQL Server 2022 and later, the MI link is the only option that supports these scenarios.
63+
64+
## Related content
65+
66+
- [Log Replay Service (LRS) overview](log-replay-service-overview.md)
67+
- [Migrate with LRS](log-replay-service-migrate.md)
68+
- [Migrate with the Managed Instance link](managed-instance-link-migrate.md)

azure-sql/managed-instance/log-replay-service-migrate.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -684,9 +684,11 @@ If LRS fails to start after some time and you get an error, check for the most c
684684
- Does the backup URI path contain keywords `backup` or `backups`? Rename the container or folders that are using `backup` or `backups` as these are reserved keywords.
685685

686686

687-
## Next steps
688-
689-
- Learn more about [migrating to Azure SQL Managed Instance by using the link feature](managed-instance-link-feature-overview.md).
690-
- Learn more about [migrating from SQL Server to Azure SQL Managed Instance](../migration-guides/managed-instance/sql-server-to-managed-instance-guide.md).
691-
- Learn more about the [differences between SQL Server and SQL Managed Instance](transact-sql-tsql-differences-sql-server.md).
692-
- Learn more about [best practices to cost and size workloads migrated to Azure](/azure/cloud-adoption-framework/migrate/azure-best-practices/migrate-best-practices-costs).
687+
## Related content
688+
689+
- [Log Replay Service overview](log-replay-service-overview.md).
690+
- [Migrate to Azure SQL Managed Instance by using the link feature](managed-instance-link-feature-overview.md).
691+
- [Migrate from SQL Server to Azure SQL Managed Instance](../migration-guides/managed-instance/sql-server-to-managed-instance-guide.md).
692+
- [Differences between SQL Server and SQL Managed Instance](transact-sql-tsql-differences-sql-server.md).
693+
- [Best practices to cost and size workloads migrated to Azure](/azure/cloud-adoption-framework/migrate/azure-best-practices/migrate-best-practices-costs).
694+
- [Compare LRS with the Managed Instance link for migration](log-replay-service-compare-mi-link.md)

azure-sql/managed-instance/log-replay-service-overview.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ To start your migration with LRS, review [Migrate databases by using Log Replay
2525
> [!IMPORTANT]
2626
> Before you migrate databases to the **Business Critical** service tier, consider [these limitations](log-replay-service-migrate.md#limitations-when-migrating-to-the-business-critical-service-tier), which don't apply to the **General Purpose** service tier.
2727
28-
29-
30-
3128
## When to use Log Replay Service
3229

3330
[Azure Database Migration Service](/azure/dms/tutorial-sql-server-managed-instance-online), the [Azure SQL migration extension for Azure Data Studio](/azure-data-studio/extensions/azure-sql-migration-extension), and LRS all use the same underlying migration technology and APIs. LRS further enables complex custom migrations and hybrid architectures between on-premises SQL Server instances and SQL Managed Instance deployments.
@@ -158,11 +155,11 @@ Plan to finish a single LRS migration job within a maximum of 30 days. When this
158155

159156
For information, review [limitations](log-replay-service-migrate.md#limitations) when using LRS.
160157

161-
## Next steps
162-
163-
- For more information, see [Migrate databases from SQL Server to SQL Managed Instance by using Log Replay Service](log-replay-service-migrate.md).
158+
## Related content
164159

165-
- Learn more about [migrating databases to SQL Managed Instance by using the link feature](managed-instance-link-feature-overview.md).
166-
- Learn more about [migrating databases from SQL Server to SQL Managed Instance](../migration-guides/managed-instance/sql-server-to-managed-instance-guide.md).
160+
- [Migrate databases from SQL Server to SQL Managed Instance by using Log Replay Service](log-replay-service-migrate.md).
161+
- [Migrate databases to SQL Managed Instance by using the link feature](managed-instance-link-feature-overview.md).
162+
- [Compare LRS with the Managed Instance link for migration](log-replay-service-compare-mi-link.md)
163+
- [Migrate databases from SQL Server to SQL Managed Instance](../migration-guides/managed-instance/sql-server-to-managed-instance-guide.md).
167164
- Learn more about the [differences between SQL Server and SQL Managed Instance](transact-sql-tsql-differences-sql-server.md).
168165
- Learn more about [best practices to cost and size workloads that are migrated to Azure](/azure/cloud-adoption-framework/migrate/azure-best-practices/migrate-best-practices-costs).

azure-sql/managed-instance/managed-instance-link-feature-overview.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ The link feature also facilitates migrating from SQL Server to SQL Managed Insta
139139
- The most performant, minimal downtime migration, compared to all other solutions available today.
140140
- True online migration to SQL Managed Instance in any service tier.
141141

142-
Because the link feature enables minimal downtime migration, you can migrate to your managed instance as you maintain your primary workload online. Although it's currently possible to achieve online migrations to the *General Purpose* service tier with other solutions, the link feature is the only solution that allows true online migrations to the *Business Critical* tier.
142+
Because the link feature enables minimal downtime migration, you can migrate to your managed instance as you maintain your primary workload online. Although it's currently possible to achieve online migrations to the *General Purpose* service tier with other solutions, the link feature is the only solution that allows true online migrations to the *Business Critical* service tier.
143+
144+
> [!NOTE]
145+
> For an in-depth migration comparison, see [Compare the Managed Instance link to LRS](log-replay-service-compare-mi-link.md).
143146
144147
## Copy data on-premises
145148

azure-sql/managed-instance/managed-instance-link-migrate.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.topic: how-to
1717

1818
This article teaches you to migrate your SQL Server database to Azure SQL Managed Instance by using the [Managed Instance link](managed-instance-link-feature-overview.md).
1919

20-
For a detailed migration guide, review [Migrate to Azure SQL Managed Instance](../migration-guides/managed-instance/sql-server-to-managed-instance-guide.md)
20+
For a detailed migration guide, review [Migrate to Azure SQL Managed Instance](../migration-guides/managed-instance/sql-server-to-managed-instance-guide.md). To compare migration tools, review [Compare LRS with MI link](log-replay-service-compare-mi-link.md).
2121

2222
## Overview
2323

@@ -34,11 +34,9 @@ Migrating with the link gives you:
3434
- The ability to migrate single or multiple databases from a single or multiple SQL Server instances to the same or multiple SQL managed instances in Azure.
3535
- The only true online migration to the Business Critical service tier.
3636

37-
3837
> [!NOTE]
3938
> While you can only migrate one database per link, you can establish multiple links from the same SQL Server instance to the same SQL Managed Instance.
4039
41-
4240
## Prerequisites
4341

4442
To use the link with Azure SQL Managed Instance for migration, you need the following prerequisites:
@@ -109,4 +107,5 @@ To learn more about the link:
109107
For other replication and migration scenarios, consider:
110108

111109
- [Transactional replication with SQL Managed Instance](replication-transactional-overview.md)
112-
- [Log Replay Service (LRS)](log-replay-service-overview.md)
110+
- [Log Replay Service (LRS)](log-replay-service-overview.md)
111+
- [Compare LRS with the Managed Instance link for migration](log-replay-service-compare-mi-link.md)

azure-sql/toc.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,12 +1164,16 @@
11641164
href: managed-instance/transact-sql-tsql-differences-sql-server.md
11651165
- name: Managed Instance link
11661166
href: managed-instance/managed-instance-link-feature-overview.md
1167-
- name: Log Replay Service (LRS)
1168-
href: managed-instance/log-replay-service-overview.md
11691167
- name: Instance pools
11701168
href: managed-instance/instance-pools-overview.md
11711169
- name: Data virtualization
11721170
href: managed-instance/data-virtualization-overview.md
1171+
- name: Log Replay Service (LRS)
1172+
items:
1173+
- name: Overview
1174+
href: managed-instance/log-replay-service-overview.md
1175+
- name: Compare with MI link
1176+
href: managed-instance/log-replay-service-compare-mi-link.md
11731177
- name: In-memory OLTP in Azure SQL Managed Instance
11741178
items:
11751179
- name: In-memory OLTP Overview

data-migration/sql-server/managed-instance/overview.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ The following table lists alternative migration tools:
105105

106106
## Compare migration options
107107

108-
Compare migration options to choose the path that's appropriate to your business needs.
108+
Compare migration options to choose the path that's appropriate to your business needs.
109+
110+
> [!NOTE]
111+
> For an in-depth migration comparison, see [Compare LRS with the Managed Instance link](/azure/azure-sql/managed-instance/log-replay-service-compare-mi-link).
109112
110113
The following table compares the recommended migration options:
111114

0 commit comments

Comments
 (0)