Amazon Kinesis · Arazzo Workflow
Amazon Kinesis Put Records and Read Back
Version 1.0.0
Batch-write records, get a shard iterator, then read the records back.
Provider
Workflows
put-records-and-read-back
Batch-put records, then read them back from the landing shard.
Writes a batch of records with PutRecords, derives the shard from the first result entry, gets a TRIM_HORIZON iterator on that shard, and reads the records back.
1
putRecords
PutRecords
Write the batch of records in a single call and capture the shard id of the first result entry to read from.
2
getShardIterator
GetShardIterator
Obtain a TRIM_HORIZON shard iterator for the shard the first record landed on, positioning the reader at the oldest record in the shard.
3
getRecords
GetRecords
Read the records back from the shard using the iterator, returning the retrieved records and the next iterator for continued reading.