What is DevRel? | What is Developer Relations ?
A to Z Full Forms and Acronyms

Introduction to Cassandra

Jun 24, 2021 Big Data, Cassandra, 1826 Views
In this article, we will discuss the Introduction of Cassandra

Introduction to Cassandra

Cassandra is a NoSQL column-based database that is highly scalable and big data ready. It is a distributed database that is highly fault-tolerant with no single point of failure.

Cassandra was developed by Facebook in 2008. To solve the inbox search problem Facebook developed it. It became the Apache open-source project in 2014.

Features of Cassandra

  • Data is stored as tables and columns.
  • It is open-source software.
  • It is highly fault-tolerant.
  • It does not support master-slave architecture.
  • It is a column-based database.
  • It has a limited SQL interface.
  • Every table has a primary key.
  • It provides a very fast read and writes.

 

Example of Cassandra query – ‘select tranid, custno from transaction where amount = 100000 Order By tranid’. Observe the syntax of the query it is quite similar to that of SQL in the RDBMS system.  

Cassandra should be used when there is a lot of information and it needs to be stored quickly in the database and when we are expecting a large increase in data size, a highly fault-tolerant cluster is needed, and when high performance is needed for the reading and writing operations.

Advantages of Cassandra

  • Cassandra does not have a single point of failure and it is highly fault-tolerant that means if any nodes fail without completing its job then other nodes will take over it and complete the task.
  • Systems can be added and removed without any downtime.
  • Fast writes allow real-time big data processing.
  • Every node in the cluster is identical this means there is no master-slave concept in Cassandra.

Limitation of Cassandra

Cassandra is not a general-purpose database because of the following reasons:

  • It does not provide data aggregation commands such as group by, sum(), max(), or min() like in relational databases.
  • Joins of tables are not possible in Cassandra. Therefore, data has to be denormalized before storing it in Cassandra.
  • It does not support additional search clauses or conditions.
  • Sorting by non-key fields is not allowed in Cassandra.
A to Z Full Forms and Acronyms
Nitin Pandit

Nitin Pandit

With over 10 years of vast development experience with different technologies, Nitin Pandit is Microsoft certified Most Valued Professional (Microsoft MVP) with a rich skillset that includes developing and managing IT/Web-based applications in different technologies, such as – C#.NET, ADO.NET, LINQ to SQL, WCF, and ASP.NET 2.0/3.x/4.0, WCF, WPF, MVC 5.0 (Razor), and Silverlight, along with client-side programming techniques, like jQuery and AngularJS. Nitin possesses a Master’s degree in Computer Science and has been actively contributing to the development community for its betterment. He has written more than 100 blogs/articles and 3 eBooks on different technologies to help improve the knowledge of young technology professionals. He has trained more than one lakh students and professionals, as a speaker in workshops and AppFests, conducted in more than 25 universities in North India.

Related Article

Cookies.

By using this website, you automatically accept that we use cookies. What for?

Understood