Cassandra performs the write function by applying two commits:
First commit is applied on disk and then second commit to an in-memory structure known as memtable.
When the both commits are applied successfully, the write is achieved.
Writes are written in the table structure as SSTable (sorted string table).