[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"pattern-apigw-cache-invalidation-eventbridge":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":58,"s3URL":6,"services":6,"stem":66,"testing":67,"videoId":6,"__hash__":70},"patterns\u002Fpatterns\u002Fapigw-cache-invalidation-eventbridge.json","Amazon API Gateway to Amazon DynamoDB including cache invalidation",null,{"text":8},[9],"\u003Ccode>sam delete\u003C\u002Fcode>",[11],"content\u002Fcontributors\u002Fmark-white.json",{"text":13},[14],"sam deploy --guided","Create a functionless cache invalidation process","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-cache-invalidation-eventbridge","serverless-patterns\u002Fapigw-cache-invalidation-eventbridge","apigw-cache-invalidation-eventbridge","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29],"This sample project demonstrates how to use a functionless cache invalidation process when utilizing API Gateway and DynamoDB as a simple CRUD.","By introducing EventBridge to this architecture and enabling DynamoDB Streams, the MODIFY event fired into the stream can be captured, processed, and published to a custom EventBridge Event Bus using EventBridge Pipes.","Once the event is available on the custom EventBridge Event Bus, a rule can consume the event and target the API Gateway with a `Cache-Control: max-age=0` header and correct AWS IAM permissions `execute-api:InvalidateCache` using the ARN method for the target.","TypeScript","200",{},{"icon1":34,"icon2":39,"icon3":43,"icon4":47,"line1":51,"line2":54,"line3":56},{"x":35,"y":36,"service":37,"label":38},10,50,"apigw","API Gateway",{"x":40,"y":36,"service":41,"label":42},35,"dynamodb","Amazon DynamoDB",{"x":44,"y":36,"service":45,"label":46},60,"dynamodb-stream","DynamoDB Streams",{"x":48,"y":36,"service":49,"label":50},85,"eventbridge","Amazon EventBridge",{"from":52,"to":53},"icon1","icon2",{"from":53,"to":55},"icon3",{"from":55,"to":57},"icon4",{"bullets":59},[60,63],{"text":61,"link":62},"Simple CRUD with API Gateway & DynamboDB","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-ddb-openapi-crud",{"text":64,"link":65},"Cache invalidation with EventBridge & EventBridge Pipes","https:\u002F\u002Faws.amazon.com\u002Feventbridge\u002F","patterns\u002Fapigw-cache-invalidation-eventbridge",{"text":68},[69],"See the GitHub repo for detailed testing instructions.","uAlDAGMWLcPIAcXa9OdcLXEEhzNZott5xgKkG2AcXOI",1779273331764]