# Cassandra

\
Apache Cassandra is an open-source distributed database management system that offers exceptional scalability, fault tolerance, and cost-effectiveness, making it highly desirable for enterprises. One of its standout features is the ability to ensure uninterrupted service even in the face of node failures.

Cassandra achieves this by replicating data across multiple nodes and data centers. The data is stored in SSTable files, which reside in the `keyspace` directory within the data directory path specified in the `Cassandra.yaml` file.

By default, the SSTable files are stored in the following directory path: `/var/lib/cassandra/data/`

With its robust data replication and fault-tolerant architecture, Cassandra guarantees continuous availability, making it a reliable choice for enterprise-level applications.

Cassandra offers two distinct approaches for backups:

1. [Snapshot-based backup:](/use/developers-guide/functional-registry/backup-and-restore/cassandra/snapshot-based-backup-method.md) This method involves capturing point-in-time snapshots of the entire database. Snapshots provide a consistent view of the data at a specific moment, facilitating recovery from various issues or accidental data loss.
2. [Incremental backup:](/use/developers-guide/functional-registry/backup-and-restore/cassandra/incremental-backup-method.md) With incremental backup, only the changes made since the last backup are stored. This approach reduces storage requirements and backup duration by capturing and preserving only the modified data. It complements snapshot-based backups by providing more frequent and efficient backup options.

By leveraging these backup methods, Cassandra users can ensure data resiliency and efficiently restore their databases in case of unexpected events or data inconsistencies.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rc.sunbird.org/use/developers-guide/functional-registry/backup-and-restore/cassandra.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
