Using entity group transactions

The Azure Table service supports entity group transactions in which a group of storage operations on entities with the same PartitionKey property are handled automatically. That is, if any operation in the group fails, then all the operations are rolled back. Unlike transactions in a traditional SQL database, entity group transactions cannot span tables or even partitions.

A single entity group transaction is limited to no more than 100 entities and a total size of 4 MB. An individual entity can be used only once in an entity group transaction. Any combination of the create, update, and delete operations can be contained in an entity group transaction. Alternatively, it can contain only query operations. However, ...

Get Microsoft Azure Development Cookbook Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.