I'm planning on moving a few features of our website into DynamoDB. Each user have a messages board, where other users can send messages to them.
Our mysql table looks like this: ID | AUTHORID | MESSAGE | USERID | TIMESTAMP
What would be the best Partition key and sort key in this case? I didn't understand this concept yet.
On mysql the primary key is ID, and there is an index on USERID, so we can fetch all messages of a given user, and order by ID.
Thanks. Best Regards