OpenSource For You

Apache Cassandra: The Crash-Proof NoSQL Database

-

The last time I wrote on NoSQL databases in February 2011, the technology was already booming. Today, these databases have changed the way developers think about building their applicatio­ns, making them look beyond RDBMS back-ends to even handle data on a massive scale. Some very unique data models that were earlier impossible with convention­al databases are now possible with NoSQL databases and clustering. One such NoSQL database is Cassandra, which was donated to Apache by Facebook in 2008.

Cassandra's most enticing and central feature is that it is decentrali­sed and has no single point of failure. It is a column-oriented database, which was initially inspired and based on Amazon's Dynamo for its distribute­d design. The decentrali­sed design makes it immune to almost any type of outage that affects a part of the cluster, while the column family-based design allows for richer, more complex data models that resemble Google's BigTable. This has allowed it to develop a good amalgamati­on of features from both Dynamo and BigTable, while evolving into a top-notch choice for production environmen­ts in various organisati­ons, including the place where it was created—Facebook.

Another concept that is important to Cassandra is eventual consistenc­y, which is increasing­ly being looked at in the context of Brewer's CAP theorem, which I had discussed in the earlier article. Eventual consistenc­y, as its name suJJHsWs, RIIHUs huJH SHUIRUPDQF­H EHQHfiWs Ey DssuPLQJ WhDW consistenc­y does not need to be guaranteed immediatel­y at all points in the database, and that it can be relaxed to some extent. This is achieved by what is known as a tunable consistenc­y model, which uses the consistenc­y level setting to EH sSHFLfiHG wLWh HDFh RSHUDWLRQ, sR WhDW WhHy DUH GHHPHG WR be successful even if data has not been written to all replicas.

 ??  ??

Newspapers in English

Newspapers from India