Details

Synchronization Comparison between DBTwin and Always On

77
发表时间:2026-04-13 08:16

Synchronization Comparison between DBTwin and Always On



NoItemsDBTwinAlways On
1

responsible   

module

DBTwin AgentSQL Server native
2log relevance

nothing to do with

database log

database log-based
3

default recovery

mode

simplefull
4sync modefull synchalf sync/async
5concurrencymulti-threaded

single-threaded,  

strictly sequential

6activities synced

necessary DMLs,

necessary DDLs

all db-scoped activities

including all DMLs

and DDLs, e.g. auto

shrinks, statistics etc.

7

performance

impact

neglectable

neglectable(async  

mode)/obvious(half

sync mode)

8

zero   data loss in

disaster

guaranteednot guaranteed


Notes:

3. In DBTwin AA cluster,in order to simplify the maintenance, the

default recovery model is simple.However, it can be modified at

any time if needed.


4. In DBTwin AA cluster,only after the previous DML being executed

succefully on both nodes can the client begin sending the next

query to the database. This is called full sync. On the other

hand,in Always On, the so-called sync mode is actually half sync

because although the log is synced in time,the data is delayed

to sync. So it is called half sync.


6. In DBTwin AA cluster, only DMLs on persistent tables are synced

automatically. if a table is not persistent from the business

perspective, then its DMLs need not be synced. Only a few necessary

DDLs are synced automatically, all other DDLs such as index rebuild,

index organize, auto shrinks, create/update/drop statistics and so

on are all not synced. And what's more, several DDLs such as

create table,create view etc are handled manually. However, in Always

On, all DMLs and DDLs including index rebuild, index organize,

create/update/drop statistics,auto shrinks and many others are all

synced automatically which would bloat the log file and impact the

overall performance.


7. Because of performance impact, all applications with this kind of

behavior or design can NOT run smoothly with Always On in synchronous

mode. For more details:

Case study: A failure of Always On but a success of DBTwin AA Cluster

https://www.zhetides.com/nd.jsp?id=31


8. In Always On due to the trade-off between the sync mode and the

overal performance,the sync mode can be occasionally switched

into async mode automatically. For more details:

Why Always On doesn't have Guaranteed Zero Data Loss(GZDL)?

https://www.zhetides.com/nd.jsp?id=24








分享到:
Phone:
86-510-81192794
WhatsApp: Gary Shen +886 902068876 Telegram: Gary Shen +86 18260489381 WeChat: Gary Shen +86 18260489381
Cellular: +86-18260489381
Email: gary.dbtwin@gmail.com
Address:Rm 323, No. 11-3, Hongyi Road, Xinan, Xinwu District, Wuxi, Jiangsu Prov, PRC