Amazon DynamoDB · Types · Services and connections
ArxDynamoConnection
Definition
- Namespace
ARX.SDK.DynamoDb.Services- Package
ARX.SDK.DynamoDb
public sealed class ArxDynamoConnection : ArxConnectionARX transactions on DynamoDB. DynamoDB has no interactive transaction: an ArxDynamoTransaction collects the writes of the calls made with it and sends them as one TransactWriteItems at CommitAsync, all or nothing, across tables, with every condition kept.
Constructor
ArxDynamoConnection(ArxDynamoDbService service)A connection for this service's transactions. It holds no network connection: DynamoDB has none to hold.
Parameter Type Description serviceArxDynamoDbServiceThe service whose client and model the transaction uses.
Usage
A line from a verified sample; the full, runnable code is on its page.
await using var connection = new ArxDynamoConnection(service);Create in an ARX transaction, scenario 1
Used in:
Notes
What follows from that: a transaction holds at most 100 writes (a call that would pass the limit is ARX8001 and the transaction stays usable); reads made with the transaction see committed data only, not its own pending writes; a write's failure (a duplicate, a missing item) shows at commit, which then throws and writes nothing; there are no savepoints. No driver types in your code.