In case SQL Azure node fails, how does it work?
In the worst case scenario, what could happen to my committed data?
Cheers.
SQL Azure always keeps data in three replicas (a primary and two standby). The first standby copy is done synchronously (ie in the same transaction) and the second asynchronously. Uncommited data may be lost but your commited data is safe.
When a hardware error the first standby is brought online. New connections are made to the new online copy. According to this the failover is not transparent and may result in termination of your connection with a generic connection error (10053 or 40197).
Of course, if it may terminate, you have to assume it will terminate and your code will have to be prepared to retry failed transactions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With