BizTalk面试题锦 - 12/23

12/23: 在原子事务中,会不会发生脱水(Dehydration)动作?

不会,在原子事务中永远不会发生脱水的动作。

Dehydration is simply serialization of the orchestration's state to a SQL Server database. Rehydration is the reverse process, restoring an orchestration to its last running state from the database. State is a broad term. For rehydration to work as a recovery mechanism, it has to capture every facet of a running orchestration. To understand hydration and dehydration, we have to understand what is dehydrated and when the orchestration engine performs dehydration and rehydration.

The what is simple but far reaching. There are three categories of information that are serialized during the dehydration of an orchestration:

  • Internal state of the orchestration engine This includes what orchestration is running and what checkpoint has been reached.

  • Component state .NET components involved in the orchestration are serialized during dehydration.

  • Messages and variables Message instances and orchestration variables are serialized so that the exact state of the data can be restored.