NoSQL Question:

Download Job Interview Questions and Answers PDF

Do you know how Cassandra writes?

NoSQL Interview Question
NoSQL Interview Question

Answer:

Cassandra writes first to a commit log on disk for durability then commits to an in-memory structure called a memtable. A write is successful once both commits are complete. Writes are batched in memory and written to disk in a table structure called an SSTable (sorted string table). Memtables and SSTables are created per column family. With this design Cassandra has minimal disk I/O and offers high speed write performance because the commit log is append-only and Cassandra doesn’t seek on writes. In the event of a fault when writing to the SSTable Cassandra can simply replay the commit log

Download NoSQL Interview Questions And Answers PDF

Previous QuestionNext Question
Can you please explain the difference between NoSql vs Relational database?Please tell me what is impedance mismatch in Database terminology?