In my test project, I'm trying to simulate a small social network that allows the users to post a personal status message.
I would to use DynamoDB for status message and MySQL for the user friendships. My doubt is: how can I design my dynamo table to store status message and fetch only the status of friends users?
For example, I need to fetch all the statuses of my friends ordered by creation date from Dynamo. I've thought of a table with this indexes:
- HashKey : user_id
- RangeKey: creation_date
- Attribute1: message
- Attribute2: ....
But, can I filter only the statuses of my friends on this table?