Momento Golang Sample
A simple repository that supports this Article. It highlights how to set up the Momento client and use it in a Golang Lambda Function.
Up and Running
cdk deploy
# watch
cdk watch # this just is a nice little nuggetThen create the record route record
Lastly, let's run the Lambda with this event payload
{
"name": "sample",
"correlationId": "abc"
}Once you've done all of that, you'll get some output that looks like this.
First, run, you'll set the cache as a miss, the DDB is queried and then set.
Run it a second time, and you'll see the cache hit


