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.

질문됨 4년 전475회 조회
1개 답변
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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠