2 12-2015 - cassandra day la - using datastax enterprise and actor systems for fault tolerant,...
TRANSCRIPT
@petabridge Petabridge.com
DataStax Enterprise and Actor
Systems
By Aaron StannardCo-Founder and CTO – Petabridge
Co-Founder – Akka.NET
@petabridge Petabridge.com
What do we love about
Datastax Enterprise?
@petabridge Petabridge.com
Intuitive Programming Model
(CQL3)
@petabridge Petabridge.com
Easily Distributed
@petabridge Petabridge.com
Highly Available
@petabridge Petabridge.com
Amazing Conference Swag!
@petabridge Petabridge.com
And more!
• Automatic cluster discovery (drivers)
• Tunable consistency
• Tremendous R/W throughput
• DSE Startup Program
@petabridge Petabridge.com
What if we could have these
nice things in the application
layer too?
@petabridge Petabridge.com
WHAT DO WE WANT?!
• Intuitive programming
model
• High availability
• Reliability
• Decouple application
design from network
topology
@petabridge Petabridge.com
Enter the Actor Model
@petabridge Petabridge.com
Akka.NET: Actor Model in .NET
@petabridge Petabridge.com
Social Proof
@petabridge Petabridge.com
Everything is an "actor"
@petabridge Petabridge.com
This is an actor
@petabridge Petabridge.com
Actors work by passing each
other messages
@petabridge Petabridge.com
Message passing in action
@petabridge Petabridge.com
Actors send messages to
addresses
@petabridge Petabridge.com
Example
@petabridge Petabridge.com
Actor addresses have location
transparency
@petabridge Petabridge.com
So this means...
@petabridge Petabridge.com
Magic Scaling Sauce!!!
@petabridge Petabridge.com
(High Availability)
@petabridge Petabridge.com
We Can Deploy Actors and
Send Messages Anywhere
@petabridge Petabridge.com
Scaling Out
• Actors can be deployed anywhere
• Special "Router" actors distribute work
• Actors can be easily restarted and
redeployed
@petabridge Petabridge.com
And Can Form Highly Available
Systems
@petabridge Petabridge.com
Automatic Clustering
• Use seed nodes (just like DSE)
• New nodes can join and leave
• Work automatically gets redistributed
(because, routers)
@petabridge Petabridge.com
But That's Not All!
• Persistent Actors
• Cluster Sharding
• And more!
@petabridge Petabridge.com
DSE + Actor Systems...
@petabridge Petabridge.com
In fact, you might already be
using them together...
@petabridge Petabridge.com
Apache Spark: Built on Akka
(JVM)
@petabridge Petabridge.com
Powerful Combinations
• Stream processing
• Event sourcing
• Real-time aggregation and analytics
• Dynamic pricing and other fun e-
commerce problems
@petabridge Petabridge.com
Have questions? Ask us!
http://petabridge.com/datastax