[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-kinesis-lambda-error-handling":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":30,"level":31,"meta":32,"patternArch":33,"resources":47,"s3URL":6,"services":6,"stem":60,"testing":61,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Fkinesis-lambda-error-handling.json","Effective consumer strategies for handling Amazon Kinesis Data Stream anomalies",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fmanjunath-arakere.json",{"text":13},[14],"sam deploy --guided","How to handle consumer (AWS Lambda) failure when reading the records from the Amazon Kinesis data stream.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fkinesis-lambda-error-handling","serverless-patterns\u002Fkinesis-lambda-error-handling","kinesis-lambda-error-handling","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29],"The purpose of this pattern is to deploy the infrastructure to showcase how handle consumer (AWS Lambda) failure when reading the records from the Amazon Kinesis data stream.","If the handling measures fail, Lambda discards the records and continues processing batches from the stream. With the default settings, this means that a bad record can block processing on the affected shard for up to one week. To avoid this, in this project we are going to configure function's event source mapping with a reasonable number of retries and a maximum record age.","To retain a record of discarded batches, we are going to configure a failed-event destination. Lambda sends the record to the destination - Amazon SQS.","Python","200",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"kinesis-datastreams","Amazon Kinesis Data Streams",{"x":40,"y":36,"service":41,"label":42},80,"lambda","AWS Lambda",{"from":44,"to":45,"label":46},"icon1","icon2","",{"bullets":48},[49,51,54,57],{"text":17,"link":50},"https:\u002F\u002Faws.amazon.com\u002Fserverless\u002Fsam\u002F",{"text":52,"link":53},"AWS Lambda with Amazon Kinesis","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-kinesis.html",{"text":55,"link":56},"Lambda event source mappings","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Finvocation-eventsourcemapping.html",{"text":58,"link":59},"Amazon Kinesis Data Generator","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fbig-data\u002Ftest-your-streaming-data-solution-with-the-new-amazon-kinesis-data-generator\u002F","patterns\u002Fkinesis-lambda-error-handling",{"text":62},[63],"See the README in the GitHub repo for detailed testing instructions.","8wnq8nQeIqEP8rGp5eqG_WbEXHVjwqCcseAVNwAYQXk",1779273336840]