We have been implementing an instant message service and want to use HBEASE to store message history (and using redis to caching ongoing conversation). The incoming message for a user looks like
- Userid (to whom)
- time
- message body (combined with from, message body ....)
Regarding Schema design: Option A: one message per row Row key: md5(userid) + timesample column/valye: null / message
Option B: one user per row Row key: md5(userid) column/valye: time / message
could you help me to figure out pro and cont? thanks chatting type include: peer-2-peer, group chating