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.

demandé il y a 4 ans475 vues
1 réponse
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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions