I am trying to create an application like Facebook where people can become friends with one another. I want to be able to use DynamoDB to create these relationships. From what I have seen online people think that the relationship should look like this:
userid friendid
1 2
1 3
2 3
I got this but in dynamoDB you can't repeat the userID in the table, so I am looking for other methods. If anyone can help in any way I would really appreciate it, because I am struggling to understand the concept.
There are two ways you can achieve this
This is very abstract level, try to think all the functionalities that you need to provide in the app and design tables accordingly.