'How to do redis caching in my NodeJs lambda

I am trying to make a chat app. What I want to attain is that, for a particular session, the chats are chached in redis. Once the session is over, I will take the chat records from redis and store them in DynamoDB.

I have experience with NodeJs. But I am new to AWS. Can someone help means provide me resources to guide me. As far as I have looked up Amazon elasticache will help me attain this. This is what most of the articles tell on internet. Am I going the right path? Please help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source