Learning Apache Cassandra : build an efficient, scalable, fault-tolerant, and highly-available data layer into your application using Cassandra /


Mat Brown ; commissioning editor Akram Hussain ; acquisition editor Rebecca Youe ; copy editors Pranjali Chury, Merilyn Pereira.
Bok Engelsk 2015 · Electronic books.
Annen tittel
Medvirkende
Chury, Pranjali, (editor.)
Hussain, Akram, (editor.)
Pereira, Merilyn, (editor.)
Youe, Rebecca, (editor.)
Omfang
1 online resource (246 p.)
Utgave
1st edition
Opplysninger
Includes index.. - Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Up and Running with Cassandra; What Cassandra offers, and what it doesn't; Horizontal scalability; High availability; Write optimization; Structured records; Secondary indexes; Efficient result ordering; Immediate consistency; Discretely writable collections; Relational joins; MapReduce; Comparing Cassandra to the alternatives; Installing Cassandra; Installing on Mac OS X; Installing on Ubuntu; Installing on Windows; Bootstrapping the project. - CQL - the Cassandra Query LanguageInteracting with Cassandra; Creating a keyspace; Selecting a keyspace; Summary; Chapter 2: The First Table; Creating the users table; Structuring of tables; Table and column options; The type system; Strings; Integers; Floating point and decimal numbers; Dates and times; UUIDs; Booleans; Blobs; The purpose of types; Inserting data; Writing data does not yield feedback; Partial inserts; Selecting data; Missing rows; Selecting more than one row; Retrieving all the rows; Paginating through results; Developing a mental model for Cassandra; Summary. - Chapter 3: Organizing Related DataA table for status updates; Creating a table with a compound primary key; The structure of the status updates table; UUIDs and timestamps; Working with status updates; Extracting timestamps; Looking up a specific status update; Automatically generating UUIDs; Anatomy of a compound primary key; Anatomy of a single-column primary key; Beyond two columns; Compound keys represent parent-child relationships; Coupling parents and children using static columns; Defining static columns; Working with static columns; Interacting with only the static columns. - Paginating over multiple partitionsBuilding an autocomplete function; Summary; Chapter 5: Establishing Relationships; Modeling follow relationships; Outbound follows; Inbound follows; Storing follow relationships; Designing around queries; Denormalization; Looking up follow relationships; Unfollowing users; Using secondary indexes to avoid denormalization; The form of the single table; Adding a secondary index; Other uses for secondary indexes; The limitations of secondary indexes; Secondary indexes can only have one column; Secondary indexes can only be tested for equality. - Secondary index lookup is not as efficient as primary key lookup. - Static-only insertsStatic columns act like predefined joins; When to use static columns; Refining our mental model; Summary; Chapter 4: Beyond Key-Value Lookup; Looking up rows by partition; The limits of the WHERE keyword; Restricting by clustering column; Restricting by part of a partition key; Retrieving status updates for a specific time range; Creating time UUID ranges; Selecting a slice of a partition; Paginating over rows in a partition; Counting rows; Reversing the order of rows; Reversing clustering order at query time; Reversing clustering order in the schema. - If you're an application developer familiar with SQL databases such as MySQL or Postgres, and you want to explore distributed databases such as Cassandra, this is the perfect guide for you. Even if you've never worked with a distributed database before, Cassandra's intuitive programming interface coupled with the step-by-step examples in this book will have you building highly scalable persistence layers for your applications in no time.
Emner
Sjanger
Dewey
ISBN
1-78398-921-1

Bibliotek som har denne