Overview
In this course, participants learn the internal architecture and CQL (Cassandra Query Language), as well as the Java API for writing Cassandra clients.
Objectives
At the end of Cassandra training course, participants will
Prerequisites
Participants should have reasonable Java experience and some knowledge of databases.
Course Outline
- Why We Need Cassandra
- High level Cassandra Overview
- Cassandra Features
- Basic Cassandra Installation and Configuration
- Cassandra Architecture Overview
- Cassandra Clusters and Rings
- Data Replication in Cassandra
- Cassandra Consistency / Eventual Consistency
- Introduction to CQL
- Defining Tables with a Single Primary Key
- Using cqlsh for Interactive Querying
- Selecting and Inserting/Upserting Data with CQL
- Data Replication and Distribution
- Basic Data Types (including uuid, timeuuid)
- Defining a Compound Primary Key
- Additional Querying Capabilities
- Data Modeling Guidelines
- Composite Partition Keys
- Indexing
- Cassandra Counters
- Cassandra collections
- Static Column: Overview and Usage
- Static Column Guidelines
- Materialized View: Overview and Usage
- Materialized View Guidelines
- Overview of Consistency in Cassandra
- CAP Theorem
- Eventual (Tunable) Consistency in C* – ONE, QUORUM, ALL
- Choosing CL ONE
- Choosing CL QUORUM
- Achieving Immediate Consistency
- Using other Consistency Levels
- Internal Repair Mechanisms (Read Repair, Hinted Handoff)
- Overview of Lightweight Transactions
- Using LWT, the [applied] Column
- IF EXISTS, IF NOT EXISTS, Other IF conditions
- Basic CAS Internals
- Overhead and Guidelines
- Dealing with Write Failure
- Unavailable Nodes and Node Failure
- Requirements for Write Operations
- Key and Row Caches
- Cache Overview
- Usage Guidelines
- Multi-Data Center Support
- Overview
- Replication Factor Configuration
- Additional Consistency Levels – LOCAL/EACH QUORUM
- Deletes
- API Overview
- Connecting to a Cluster
- The Query API
- Dynamic Queries and QueryBuilder
- Configuring Query Behavior
- Asynchronous Querying Overview