educative.io

Wide-column database further explanation

I understand that we store new data in a memory buffer which makes writing fast. However, reading from cassandra/HBase is quite slow? Do we not care because we read very infrequently?

I know wide-column databases don’t have a schema but can you give an example of what the stores what would like in HBase/Cassandra? I’m thinking for
users: RowKey: UserId, Columns: All of User MetaData
Chat History: RowKey: UserId Columns: All Messages sent <-- This doesn’t feel quite right

Thanks for your help

4 Likes