Using Cassandra to store immutable data?

We are exploring options for storing and reading a large amount of immutable data (events), and I would like to get some feedback on whether Cassandra will work well.

Requirements:

  • We need to store about 10 events per second (but the speed will increase). Each event is small, about 1 Kb.
  • A very important requirement is that we need to be able to reproduce all events in order. It would be nice for us to read all the data in the input order (for example, scanning a table), so an explicit view may not be necessary.

Querying data in any other way is not the main problem, and since Cassandra is a db schema, I donโ€™t think it is possible when events come in different forms? Would Cassandra be a good fit for this? If so, then you need to know?

+4
source share
2 answers

I had the same requirements for a โ€œprojectโ€ (rather a tool) a year ago, and I used Cassandra, and I did not regret it. In general, it fits very well. You can put quite a lot of data into a Cassandra cluster, and the performance is impressive (although you may need to tune it), and the natural order is a good thing.

, , , , , .

. , . . , , . - 2.1, ( order by ), , , . .

, (, ), , . , . - , - , .

Rowlength 2 , , , . , , . , ( //), .

. <, > = . SQL WHERE..

, , . , . - , , , .

, ~ 65000 .

, ( :))

+4

, , Cassandra , . - , , , , . Datastax Academy , .

: BLOB, (.. JSON ), map, Cassandra , . Cassandra 2.0/2.1.

Cassandra SQL, CQL , . , Cassandra , - Datastax ,

: , , , , .

+4

Source: https://habr.com/ru/post/1624609/


All Articles