Overview
Syllabus
Intro
Billing Engineering
Netflix operates out of multiple AWS regions to ensure availability
Single Master Single Point of Failure
Read replicas
Slave Promotion
We needed something better...
But it's not perfect, especially for a financial system
So how do you build a financial system on top of it?
Lightweight Transactions in Cassandra
Update Consistency With Optimistic Locking
Two Scenarios
With Cassandra, last write wins
How does Cassandra achieve fault tolerance?
Local Quorum vs Each Quorum
Insert Consistency
Some things to consider
Minimizing inconsistencies
Building a financial system on top of Cassandra
Our object model needed relations
We built a poor man's relational schema
Understand performance implications before using collection types
Querying across rows
Recap
Taught by
Strange Loop Conference