Mastering Apache Cassandra : Get Comfortable with the Fastest NoSQL Database, Its Architecture, Key Programming Patterns, Infrastructure Management, and More! /
Mastering Apache Cassandra is a practical, hands-on guide with step-by-step instructions. The smooth and easy tutorial approach focuses on showing people how to utilize Cassandra to its full potential. This book is aimed at intermediate Cassandra users. It is best suited for startups where developer...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
Ã2013.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Quick Start; Introduction to Cassandra; Distributed database; High availability; Replication; Multiple data centers; A brief introduction to a data model; Installing Cassandra locally; CRUD with cassandra-cli; Cassandra in action; Modeling data; Writing code; Setting up; Application; Summary; Chapter 2: Cassandra Architecture; Problems in the RDBMS world; Enter NoSQL; The CAP theorem; Consistency; Availability; Partition-tolerance.
- Significance of the CAP theoremCassandra; Cassandra architecture; Ring representation; How Cassandra works; Write in action; Read in action; Components of Cassandra; Messaging service; Gossip; Failure detection; Partitioner; Replication; Log Structured Merge tree; CommitLog; MemTable; SSTable; Compaction; Tombstones; Hinted handoff; Read repair and Anti-entropy; Summary; Chapter 3: Design Patterns; The Cassandra data model; The counter column; The expiring column; The super column; The column family; Keyspaces; Data types
- comparators and validators; Writing a custom comparator.
- The primary indexThe wide-row index; Simple groups; Sorting for free, free as in speech; An inverse index with a super column family; An inverse index with composite keys; The secondary index; Patterns and antipatterns; Avoid storing an entity in a single column (wherever possible); Atomic update; Managing time series data; Wide-row time series; High throughput rows and hotspots; Advanced time series; Avoid super columns; Transaction woes; Use expiring columns; batch_mutate; Summary; Chapter 4: Deploying a Cluster; Evaluating requirements; Hard disk capacity; RAM; CPU; Nodes; Network.
- System configurationsOptimizing user limits; Swapping memory; Clock synchronization; Disk readahead; The required software; Installing Oracle Java 6; RHEL and CentOS systems; Debian and Ubuntu systems; Installing the Java Native Access (JNA) library; Installing Cassandra; Installing from a tarball; Installing from ASFRepositoy for Debian/Ubuntu; Anatomy of the installation; Cassandra binaries; Configuration files; Configuring a Cassandra cluster; The cluster name; The seed node; Listen, broadcast, and RPC addresses; Initial token; Partitioners; The random partitioner.
- The byte-ordered partitionerThe Murmur3 partitioner; Snitches; SimpleSnitch; PropertyFileSnitch; GossipingPropertyFileSnitch; RackInferringSnitch; EC2Snitch; EC2MultiRegionSnitch; eplica placement strategies; SimpleStrategy; NetworkTopologyStrategy; Launching a cluster with a script; Creating a keyspace; Authorization and authentication; Summary; Chapter 5: Performance Tuning; Stress testing; Performance tuning; Write performance; Read performance; Choosing the right compaction strategy; Size tiered compaction strategy; Leveled compaction; Row cache; Key cache; Cache settings; Enabling compression.