capabilities.work

Batch Write Then Batch Get

A 3-step recipe with Amazon DynamoDB. We can help you get access.

Recipe · 3 steps

Batch Write Then Batch Get

Bulk write items, retry unprocessed, then batch read them back.

  1. Write the batch of items. DynamoDB may return UnprocessedItems if any requests were throttled or not completed.
  2. Resubmit the items DynamoDB did not process on the first attempt, looping until none remain.
  3. Read the written items back in a single batch request.
What you'll need to have ready
  • writeRequestItems: The RequestItems map for BatchWriteItem (table name to an array of PutRequest/DeleteRequest objects).
  • getRequestItems: The RequestItems map for BatchGetItem (table name to Keys and attributes to retrieve).
For your developer

Arazzo workflow amazon-dynamodb:batch-write-then-batch-get, 3 operations: BatchWriteItem → BatchWriteItem → BatchGetItem. Specs on APIs.io.