DMS CDC for SQL Server - Replication
I am using MS-SQL Server 2012 and 2016 on-prem. I want to capture CDC from this database and load it into Redshift using DMS. Since our tables have primary keys, MS-Replication seems to be the only option that will help facilitate this. Currently replication is not enabled and I want to understand the performance impact, any gotchas, possibles issues that can arise when turning replication on.
==>MS-Replication seems to be the only option that will help facilitate this. In our documentation [1] it's written "MS-CDC, to capture changes for tables without primary keys", but if you read in details that is mentioned only when MS-replication isn't possible due to missing primary key. However, you can still use "MS-CDC to capture changes for tables, with or without primary keys. MS-CDC must be enabled at the database level, and for all of the tables individually".
==>Currently replication is not enabled and I want to understand the performance impact, any gotchas, possibles issues that can arise when turning replication on. Kindly note in case of MS-Replication enabled on source database, DMS doesn't uses all replication components (i.e. Distributor, publisher & subscriber), but only distributor and publisher. However for ongoing changes, data is actually read from transaction log using sql server fn_dblog and fn_dump_dblog. So it won't have the same performance impact as you have it while running MS-replication(migrating data using Replication from sql server to sql server). As highlighted above, still if you identify that MS-replication is taking more resources, you can still go ahead and use MS-CDC to read changes.
[1] https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html
Relevant questions
DMS to migrate SQL Server from RDS to EC2
asked 2 years agoAWS DMS - primary key verification
Accepted Answerasked 7 months agoDMS CDC for SQL Server - Replication
Accepted AnswerAWS DMS Replication Task
asked a month agoSupport for RDS Oracle as source while using DMS SCN for CDC
Accepted Answerasked 4 years agoDMS: How does a replication task handle duplicate data w/o Primary/Unique keys on the table
asked 20 days agoAbout DMS migration from ms-sql to dynamodb
asked 25 days agoIssues with ongoing loads/replication/delta loads using DMS
Accepted Answerasked 3 years agoHow AWS DMS CDC is working successfully without CDC On-premise MSSQL CDC prerequisites config?
Accepted Answerasked 17 days agoDMS CDC to Redshift during cluster resize
Accepted Answerasked 2 years ago