amazon web services - Multiple AWS Lambda functions on a Single DynamoDB Stream -


i have lambda function multiple dynamodb streams configured event sources , part of bigger pipeline. while doing checks, found missing data in 1 of downstream components. want write simpler lambda function configured event source 1 of earlier mentioned dynamodb streams. cause 1 of dynamodb streams have 2 lambda functions reading it. wondering if ok? both lamdba functions guaranteed receive records placed in stream , there resource (read/write throughput) limits need aware of. couldn't find relevant documentation on aws website, did find regarding processing of shards

to access stream , process stream records within, must following:

  • determine unique amazon resource name (arn) of stream want access.
  • determine shard(s) in stream contain stream records interested in.
  • access shard(s) , retrieve stream records want.

note no more 2 processes @ should reading same streams shard @ same time. having more 2 readers per shard may result in throttling.

not sure how above relates cases streams configured event sources lambdas opposed manually reading stream using api.

you can have multiple lambdas using same stream event source. not infer each other. documentation says: "note no more 2 processes @ should reading same streams shard @ same time. having more 2 readers per shard may result in throttling." if heavily utilize streams should not have more 2 lambdas connected them.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -