Hello, Welcome to MS Q&A
To maintain data consistency for read replicas in Azure SQL Managed Instance (MI), data changes made on the primary replica are propagated to read-only replicas either synchronously or asynchronously, depending on the type of replica. Reads from a read-only replica are always asynchronous with respect to the primary. This means that while reads within a session connected to a read-only replica are transactionally consistent, there can be a variable data propagation latency that affects the visibility of the latest changes.
For applications that require guaranteed data consistency or immediate visibility of committed data, it is recommended to use the primary replica instead of the read-only replicas. Monitoring data propagation latency is also crucial to ensure that the application can accommodate any delays that may occur.
And if you are looking for consistency guaranteed --> I think Transaction Log-Based Replication for Read Consistency as Transactional replication typically starts with a snapshot of the publication database objects and data. As soon as the initial snapshot is taken, subsequent data changes and schema modifications made at the Publisher are usually delivered to the Subscriber as they occur (in near real time). The data changes are applied to the Subscriber in the same order and within the same transaction boundaries as they occurred at the Publisher; therefore, within a publication, transactional consistency is guaranteed.
please check this
References:
- Use read-only replicas to offload read-only query workloads
- Use Transaction Log-Based Replication for Read Consistency
Please let us know if you have any questions
Kindly accept answer if it helps
Thanks
Deepanshu