Foreword |
|
xiii | |
Preface |
|
xv | |
|
1 Beyond Relational Databases |
|
|
1 | (16) |
|
What's Wrong with Relational Databases? |
|
|
1 | (4) |
|
A Quick Review of Relational Databases |
|
|
5 | (7) |
|
Transactions, ACID-ity, and Two-Phase Commit |
|
|
6 | (3) |
|
|
9 | (1) |
|
Sharding and Shared-Nothing Architecture |
|
|
10 | (2) |
|
|
12 | (1) |
|
|
13 | (3) |
|
|
16 | (1) |
|
|
17 | (18) |
|
The Cassandra Elevator Pitch |
|
|
17 | (11) |
|
Cassandra in 50 Words or Less |
|
|
17 | (1) |
|
Distributed and Decentralized |
|
|
18 | (1) |
|
|
19 | (1) |
|
High Availability and Fault Tolerance |
|
|
19 | (1) |
|
|
20 | (3) |
|
|
23 | (4) |
|
|
27 | (1) |
|
|
28 | (1) |
|
Where Did Cassandra Come From? |
|
|
28 | (2) |
|
Is Cassandra a Good Fit for My Project? |
|
|
30 | (2) |
|
|
30 | (1) |
|
Lots of Writes, Statistics, and Analysis |
|
|
31 | (1) |
|
Geographical Distribution |
|
|
31 | (1) |
|
Hybrid Cloud and Multicloud Deployment |
|
|
31 | (1) |
|
|
32 | (2) |
|
|
34 | (1) |
|
|
35 | (20) |
|
Installing the Apache Distribution |
|
|
35 | (3) |
|
|
36 | (1) |
|
|
36 | (2) |
|
|
38 | (1) |
|
|
39 | (1) |
|
|
39 | (5) |
|
|
40 | (1) |
|
|
41 | (2) |
|
|
43 | (1) |
|
Other Cassandra Distributions |
|
|
44 | (1) |
|
|
45 | (1) |
|
|
46 | (7) |
|
|
46 | (1) |
|
Describing the Environment in cqlsh |
|
|
47 | (1) |
|
Creating a Keyspace and Table in cqlsh |
|
|
48 | (3) |
|
Writing and Reading Data in cqlsh |
|
|
51 | (2) |
|
Running Cassandra in Docker |
|
|
53 | (1) |
|
|
54 | (1) |
|
4 The Cassandra Query Language |
|
|
55 | (26) |
|
The Relational Data Model |
|
|
55 | (1) |
|
|
56 | (10) |
|
|
59 | (1) |
|
|
59 | (1) |
|
|
59 | (4) |
|
|
63 | (3) |
|
|
66 | (13) |
|
|
67 | (1) |
|
|
67 | (1) |
|
Time and Identity Data Types |
|
|
68 | (2) |
|
|
70 | (2) |
|
|
72 | (3) |
|
|
75 | (1) |
|
|
76 | (3) |
|
|
79 | (2) |
|
|
81 | (26) |
|
|
81 | (1) |
|
|
82 | (4) |
|
Design Differences Between RDBMS and Cassandra |
|
|
83 | (3) |
|
Defining Application Queries |
|
|
86 | (1) |
|
|
87 | (6) |
|
|
89 | (2) |
|
Reservation Logical Data Model |
|
|
91 | (2) |
|
|
93 | (4) |
|
Hotel Physical Data Model |
|
|
94 | (2) |
|
Reservation Physical Data Model |
|
|
96 | (1) |
|
|
97 | (4) |
|
Calculating Partition Size |
|
|
97 | (1) |
|
|
98 | (2) |
|
Breaking Up Large Partitions |
|
|
100 | (1) |
|
|
101 | (5) |
|
Cassandra Data Modeling Tools |
|
|
103 | (3) |
|
|
106 | (1) |
|
6 The Cassandra Architecture |
|
|
107 | (28) |
|
|
107 | (1) |
|
Gossip and Failure Detection |
|
|
108 | (2) |
|
|
110 | (1) |
|
|
111 | (2) |
|
|
113 | (1) |
|
|
113 | (1) |
|
|
114 | (1) |
|
|
115 | (2) |
|
Queries and Coordinator Nodes |
|
|
117 | (1) |
|
|
118 | (1) |
|
Anti-Entropy, Repair, and Merkle Trees |
|
|
119 | (1) |
|
Lightweight Transactions and Paxos |
|
|
120 | (2) |
|
Memtables, SSTables, and Commit Logs |
|
|
122 | (2) |
|
|
124 | (1) |
|
|
125 | (1) |
|
|
125 | (2) |
|
|
127 | (1) |
|
|
128 | (3) |
|
|
128 | (1) |
|
|
129 | (1) |
|
|
129 | (1) |
|
|
130 | (1) |
|
|
130 | (1) |
|
|
130 | (1) |
|
CQL Native Transport Server |
|
|
131 | (1) |
|
|
131 | (3) |
|
|
134 | (1) |
|
7 Designing Applications with Cassandra |
|
|
135 | (22) |
|
|
135 | (8) |
|
Cassandra and Microservice Architecture |
|
|
135 | (2) |
|
Microservice Architecture for a Hotel Application |
|
|
137 | (1) |
|
Identifying Bounded Contexts |
|
|
138 | (1) |
|
|
138 | (2) |
|
Designing Microservice Persistence |
|
|
140 | (3) |
|
|
143 | (9) |
|
|
144 | (4) |
|
|
148 | (4) |
|
Reservation Service: A Sample Microservice |
|
|
152 | (1) |
|
Design Choices for a Java Microservice |
|
|
152 | (1) |
|
Deployment and Integration Considerations |
|
|
153 | (3) |
|
Services, Keyspaces, and Clusters |
|
|
153 | (1) |
|
Data Centers and Load Balancing |
|
|
154 | (1) |
|
Interactions Between Microservices |
|
|
154 | (2) |
|
|
156 | (1) |
|
8 Application Development with Drivers |
|
|
157 | (30) |
|
|
158 | (23) |
|
Development Environment Configuration |
|
|
158 | (1) |
|
|
159 | (2) |
|
|
161 | (1) |
|
|
162 | (1) |
|
|
163 | (2) |
|
|
165 | (2) |
|
|
167 | (4) |
|
|
171 | (1) |
|
|
172 | (6) |
|
|
178 | (2) |
|
|
180 | (1) |
|
|
181 | (1) |
|
|
182 | (1) |
|
|
183 | (1) |
|
|
183 | (2) |
|
|
185 | (2) |
|
9 Writing and Reading Data |
|
|
187 | (26) |
|
|
187 | (12) |
|
|
187 | (2) |
|
|
189 | (2) |
|
|
191 | (2) |
|
|
193 | (3) |
|
|
196 | (3) |
|
|
199 | (11) |
|
|
199 | (2) |
|
|
201 | (2) |
|
|
203 | (2) |
|
Range Queries, Ordering and Filtering |
|
|
205 | (3) |
|
|
208 | (2) |
|
|
210 | (2) |
|
|
212 | (1) |
|
10 Configuring and Deploying Cassandra |
|
|
213 | (30) |
|
Cassandra Cluster Manager |
|
|
213 | (6) |
|
|
214 | (3) |
|
Adding Nodes to a Cluster |
|
|
217 | (1) |
|
Dynamic Ring Participation |
|
|
218 | (1) |
|
|
219 | (10) |
|
|
219 | (1) |
|
|
220 | (2) |
|
|
222 | (2) |
|
|
224 | (1) |
|
|
225 | (1) |
|
|
226 | (2) |
|
|
228 | (1) |
|
Planning a Cluster Deployment |
|
|
229 | (7) |
|
Cluster Topology and Replication Strategies |
|
|
229 | (3) |
|
|
232 | (2) |
|
|
234 | (1) |
|
|
234 | (1) |
|
|
235 | (1) |
|
|
236 | (5) |
|
|
236 | (3) |
|
|
239 | (1) |
|
|
240 | (1) |
|
|
241 | (2) |
|
|
243 | (30) |
|
Monitoring Cassandra with JMX |
|
|
243 | (3) |
|
|
246 | (7) |
|
|
247 | (3) |
|
|
250 | (2) |
|
|
252 | (1) |
|
|
253 | (6) |
|
Getting Cluster Information |
|
|
254 | (3) |
|
|
257 | (2) |
|
|
259 | (4) |
|
|
260 | (1) |
|
|
261 | (2) |
|
|
263 | (3) |
|
|
266 | (5) |
|
|
268 | (2) |
|
|
270 | (1) |
|
|
271 | (2) |
|
|
273 | |
|
|
273 | (1) |
|
|
274 | (8) |
|
|
274 | (1) |
|
|
275 | (1) |
|
|
276 | (5) |
|
|
281 | (1) |
|
|
281 | (1) |
|
|
282 | (2) |
|
Adding Nodes to an Existing Data Center |
|
|
282 | (1) |
|
Adding a Data Center to a Cluster |
|
|
283 | (1) |
|
|
284 | (6) |
|
|
285 | (1) |
|
|
286 | (1) |
|
|
287 | (3) |
|
|
290 | (2) |
|
|
292 | (4) |
|
|
293 | (1) |
|
|
294 | (1) |
|
Enabling Incremental Backup |
|
|
294 | (1) |
|
|
295 | (1) |
|
|
296 | (1) |
|
|
297 | |
|
|
297 | |