Home icon

Overview and best practices of multithreaded replication in Amazon RDS for MySQL, Amazon RDS for MariaDB, and Amazon Aurora MySQL

Database Blog



This article provides a comprehensive overview of Multithreaded Replication (MTR) in Amazon RDS for MySQL, MariaDB, and Amazon Aurora MySQL, focusing on its architecture, configuration, and best practices.

  • MTR enhances binlog replication performance by using multiple worker threads to apply transactions in parallel
  • Two primary dependency tracking methods are used: COMMIT ORDER and WRITESET
  • Key configuration parameters include:
    • binlog_transaction_dependency_tracking (recommended: WRITESET)
    • replica_parallel_workers (default: 4 in newer versions)
    • replica_preserve_commit_order (ensures transaction order consistency)
  • Recommended best practices:
    • Use tables with primary or unique keys
    • Avoid large transactions
    • Monitor and tune worker thread settings

The article emphasizes the importance of carefully configuring MTR to optimize replication performance while maintaining data consistency across source and replica databases.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Oct 21
2025
Monitoring multithreaded replication in Amazon RDS for MySQL, Amazon RDS for MariaDB, and Aurora MySQL
Feb 6
2024
Introducing multi-source replication on Amazon RDS for MySQL
Oct 16
2025
Performance optimization strategies for MySQL on Amazon RDS
Feb 29
2024
Implement advanced replication features with Amazon RDS for MySQL and Amazon Aurora MySQL using intermediate replication servers

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.