I'd like to use some sort of AWS serverless technology to trigger an event when a clickstream stops receiving clicks. Imagine a website visitor clicking around a site. Within our current solution each click is being sent over http to an AWS API Gateway which uses a Lambda function to push the value into DynamoDB. I'd like to trigger an event when the clickstream stops; say, 5 minutes after the last click was received (per visitor). The 'lack' of further clicks indicates that the visit has concluded, at which point I'd like to take some further action
I'm keen to maintain our AWS serverless approach. Do AWS offer an 'out-of-the-box' service which would deliver this capability? I need the resolution to be a few seconds, not minutes or days. Thanks.