Single key space or multiple key space in datamodel cassandra

Which one is best for managing data with a single key or multiple keywords. Suppose that one application has more clients. Each client will send a large data set, and we will store the data in a time series column. If I go for a separate key space for each client, will it be good to manage data in Kassandra? What are the advantages and disadvantages if I use the same key space for one client in my application?

+4
source share
1 answer

The main reason for having multiple key spaces is that some parameters are specified for each key space, and some for each column family.

The most important parameters at each key level are the replication strategy β€” replication (one or more DCs) and replication coefficient (total or direct current). All column families in the key space have the same replication settings. Different applications may have different replication requirements - maybe not today, but maybe in the future. Therefore, for this reason, it is recommended that you use different key spaces for different applications.

In terms of performance or resource utilization, there are very few differences in whether column families are in the same key space.

+9
source

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


All Articles