I want to design a system for user point. The main two points of this system are point and log.
I want to use Cassandra to store the data. Two reason:
- Cassandra provides counter feature which I can use to store the point.
- The log of point changing may be too much I have to think about the scale of the storage. Cassandra can be easily scaled.
The basic data sturcture:
// row
name: user_id,
values: {
point: {
name: point,
values: 1000
},
log: {
name: log,
values: {
log_timestamp: {
name: timestamp,
values: xxxx
},
log_timestamp: {
name: timestamp,
values: xxxx
},
log_timestamp: {
name: timestamp,
values: xxxx
},
……
}
}
}
My question is:
Is there any problem if the log is too many enough?