Replacing Cassandra: A Digital Transformation for the ... · • Predictive and fast access to...
Transcript of Replacing Cassandra: A Digital Transformation for the ... · • Predictive and fast access to...
AERO SPIKE USER SUM M IT 2018
Replacing Cassandra: A Digital Transformation for the
World’s Largest Digital Identity Network
Matthias Baumhof, Vice President Technology
Nick Blievers, Senior Director Engineering
ThreatMetrix, A LexisNexis Risk Solutions Company
2 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Trusted Useror Cyber Threat?
3 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Our intelligence is powered by 5,000 companies in our global network
4 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
The world’s largest Digital Identity Network
Global Shared Intelligence:
130M transactions daily across 40,000 websites
5 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Allowing for quick and confident customer recognition
Source:
Q1 2018 ThreatMetrix
Cybercrime Report
6 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Transactions
•3bn API transactions per month
•55% are mobile
Active Entities
•Over 4.5bn active devices protected
•Over 1.4bn active accounts protected
~50 countries / second ~160 countries / minute ~240 countries / hour
Global Shared Intelligence at Scale
7 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Universal fraud & authentication decisioning
in real time at global scale in the cloud
Customer calls API
ThreatMetrix returns 100’s of attributes
ThreatMetrix Datacenter
< 100 ms
Smart RulesSmart Learning
8 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Real-Time Decisioning Example:
Identifying trusted returning customers
Account Registration
and successful Login
Device AUser A Location A
User forgot password
while trying to login,
challenge?
No
Yes
Device AUser A Location A
`
Device BUser A Location B
TRUSTED
TRUSTEDAfter 12 months
9 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Switching to Aerospike
10 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
General Requirements
• Predictive and fast performance with reads, max 1ms
• Read latency should not be affected with a heavy write workload
• I/O capacity for millions of reads/sec and writes/sec
• Predictive and fast access to 10’s of billions of keys and > 100 TB of raw data
• Node count in a manageable range: < 50 nodes
• Highly available, stores multiple copies of the data
• Multi Datacenter replication with minimal latency: < 500ms
• Easy to administer, operate and expand
• Clients for typical programming languages
11 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Storage Requirements
12 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Performance Requirements
• Slowdowns in user journey cost $$$
• Reportedly 100ms can cost Amazon 1% in revenue*
• Ever Increasing demand
13 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
What we were using
Custom SQLite clustered solution Cassandra
14 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
The new storage layer
• “10x faster than what you use
now”
• Sounds good, possibly too good
to be true?
15 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Migration
Custom SQLite Cassandra Aerospike
16 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
The Path To Better Performance
17 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Is it really 10x?
96 Nodes
100ms
28 Nodes
30ms
*The new hardware is faster and has 3x the RAM, and better SSDs
18 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Unexpected benefits
SSD write endurance
Support
User Defined Functions
19 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
What do we think now?
• World class products are a collection of trade-offs… but the right
trade-offs.
• Aerospike does make concessions, but delivers in it’s promise of
blindingly fast performance
• Can’t argue with the results!
20 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Our Cluster Details
21 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Cluster Growth
(per Datacenter)
28 Nodes
450 TB disk
20 TB RAM
48 Nodes
1,300 TB
35 TB RAM
Now End of 2018
22 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
ThreatMetrix real-time API architecture
. . .
. . .
Load balancer
API server
Analytics Engines
28 Aerospike servers
23 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Real-world performance
Average read latency: ~ 0.35ms measured at Analytics Engine
24h window, ~40,000 writes / sec, ~10,000 reads / sec
24 A E R O S P I K E U S E R S U M M I T | Proprietary & Confidential | All rights reserved. © 2018 Aerospike Inc
Thank you
Americas+1408 200 5700
Asia Pacific+61 2 9411 4499
EMEA+31 (0)20 800 0638
Webthreatmetrix.com