How is the DDB Streams partition key constructed?

0

Let's say I have a DDB table similar to the following:

LocId (hash)
Index (range)
...

The data for a single "Loc" would be spread out across multiple records (I'm not looking for advice on how to restructure the data, I have reasons for this approach). If we have a DDB stream enabled and wired to a Lambda function will I be guaranteed to get all changes to any LocId record on the same shard?

I don't care too much about FIFO, I just want to make sure that if, say, fifteen different indexes were updated for the same LocId at one time, the changes wouldn't be spread out over multiple instances of the Lambda function.

asked 4 years ago456 views
1 Answer
0
  • Is it correct that your use case is not guaranteed? The blog states that only the order of a primary key (Hash+Range) will be in at-most one shard.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions