r/SQLServer • u/Kenn_35edy • May 07 '26
Question data synchronization in sql server always on availability groups
Hi As title suggest i was looking for how data gets syncgronized in sql server always on setsup.I mean what happens internally i know i can google but different weistes says different things . Even microsof doenot have one properly so if any one can provide link it would get great
0
Upvotes
•
u/AutoModerator May 07 '26
After your question has been solved /u/Kenn_35edy, please reply to the helpful user's comment with the phrase "Solution verified".
This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/pandamaja May 07 '26
You should look for synchronous vs asynchronous modes: https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/availability-modes-always-on-availability-groups?view=sql-server-ver17
1
u/MasterChiefmas May 07 '26
Do you mean between the replicas, or something else(log shipping, replication, which is different from the replicas in Availability Groups) ?
how much detail are you looking for? Do you understand the basics of how SQL Server, or just very generally, how RDBMS handle writing data, with the use of a log file? If you don't understand the basic mechanism a database works to ensure ACID, it's going to be more confusing, since it's not just a straight write data to a file thing.
1
u/dbrownems Microsoft Employee May 07 '26
SQL Server streams the transaction log records from the primary replica to the secondary instance and runs the "redo" part of database recovery path continuously on the secondary replica.
The Transaction Log - SQL Server | Microsoft Learn