Warm tip: This article is reproduced from serverfault.com, please click

What do Transaction means in OLTP?

发布于 2021-04-30 07:12:10

My question might be little native. 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?

Questioner
Purushottam Baghel
Viewed
0
Erick Ramirez 2021-04-30 17:21:31

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:

  • the primary DC is used for OLTP workloads
  • Spark/OLAP queries are run against a separate second DC

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!