databasedatabase-designcassandraolapoltp

What do Transaction means in OLTP?


What is the meaning of transaction in OLTP? Is it same as ACID Transaction or there is something else?

NoSql database like cassandra doesn't follow ACID properties. They follow CAP. In which category Cassandra falls? Is it OLAP or OLTP?


Solution

  • Despite not supporting true ACID, Cassandra is firstly an OLTP database which by definition means it's about capture, storage and processing of data from transactions in real time.

    Cassandra can be used for OLAP workloads usually in combination with Apache Spark for analytics queries against the OLTP data. This is one of the really powerful use cases for Cassandra + Spark -- real time analytics so you can get insights in real time.

    If you are running OLAP queries against Cassandra, the recommendation is to deploy in a multi-datacentre configuration such that:

    By isolating OLTP workloads in its own DC, users of your application don't get affected by the load that analytics queries impose on the database. This ensures that the performance of your application and the user experience is consistent. Cheers!