Patrick McFadin, Chief Evangelist for Apache Cassandra @PatrickMcFadin
How to roll Cassandra into production without losing your health, mind or job
The problem (too much)
9© 2015. All Rights Reserved.
“We’re building a platform”“It’s a 3 year project”
“We’ll build it from scratch with all the lessons learned from the last app”
“Rewrite everything using technology X”
Pick an app
11© 2015. All Rights Reserved.
User Administration
Product Web Site
Fraud detection
Website and user monitoring
Pick a pain point
12© 2015. All Rights Reserved.
Website and user monitoring
Event tracking Alerting Log storage
Cassandra is not…
17© 2015. All Rights Reserved.
A Data Ocean or Pond., Lake
An In-Memory Database
A Key-Value Store
A magical database unicorn that farts rainbows
18© 2015. All Rights Reserved.
When to use…
Loose data model (joins, sub-selects) Absolute consistency (aka gotta have ACID) No need to use anything else You’ll miss the long, candle lit dinners with your Oracle rep that always end with “what’s your budget look like this year?”
Oracle, MySQL, Postgres or <RDBMS>
19© 2015. All Rights Reserved.
When to use…
Uptime is a top priority Unpredictable or high scaling requirements Workload is transactional Willing to put the time or effort into understanding how Cassandra works and how to use it.
Use Oracle when you want to count your money. Use Cassandra when you want to make money.
Cassandra
8 Fallacies of distributed computing
21© 2015. All Rights Reserved.
1. The network is reliable. 2. Latency is zero. 3. Bandwidth is infinite. 4. The network is secure. 5. Topology doesn't change. 6. There is one administrator. 7. Transport cost is zero. 8. The network is homogeneous.
22© 2015. All Rights Reserved.
Test Test
Test
TestTest
Test
TestTestTest
TestTest
TestTest
Test
TestTest
Test
Center of excellence
• Group dedicated to providing leadership and guidance
28© 2015. All Rights Reserved.