Upload
petabridge
View
2.705
Download
7
Tags:
Embed Size (px)
Citation preview
@petabridge Petabridge.com
Intro to Akka.Cluster
Andrew Skotzko
Co-Founder, Petabridge
@askotzko
@petabridge Petabridge.com
@petabridge Petabridge.com
@petabridge Petabridge.com
Introduction to Clustering
• What is a cluster?
• What does clustering give me?
• How do I enable clustering?
• How do I actually use clustering?
@petabridge Petabridge.com
What is a cluster?
@petabridge Petabridge.com
Network View of a Cluster
@petabridge Petabridge.com
What is a "Cluster?"
@petabridge Petabridge.com
Akka.Cluster brings clustering
to Akka.NET
@petabridge Petabridge.com
Benefits of Clustering
• Elastic
• Recover from failure
• Easy microservices
And the best part…
@petabridge Petabridge.com
No Code Changes!
@petabridge Petabridge.com
Akka.Cluster HOCON
@petabridge Petabridge.com
NOTE: All nodes in an
Akka.NET Cluster must have
the same ActorSystem name.
@petabridge Petabridge.com
When do we use clustering?
@petabridge Petabridge.com
Clustering Examples
@petabridge Petabridge.com
How do clusters form?
@petabridge Petabridge.com
Initial State
@petabridge Petabridge.com
Seed Node: Initial, well-known
nodes contacted by nodes
attempting to join the cluster
@petabridge Petabridge.com
Lighthouse - Dedicated Seed
Node for Akka.NET• Never needs to be
upgraded*
• Configurable
• Low resource
consumption
@petabridge Petabridge.com
Joining the Cluster
@petabridge Petabridge.com
Leader Election
@petabridge Petabridge.com
Ring Formation
@petabridge Petabridge.com
How do I enable clustering?
@petabridge Petabridge.com
How to Enable Akka.Cluster
@petabridge Petabridge.com
Simple Cluster Sample
@petabridge Petabridge.com
What makes this all possible?
@petabridge Petabridge.com
Location Transparency
@petabridge Petabridge.com
Location of Actor in Cluster
Doesn't Matter
@petabridge Petabridge.com
How do I actually use
clustering?
@petabridge Petabridge.com
Running Multiple Akka.NET
Apps in a Cluster
(Microservices)
@petabridge Petabridge.com
Cluster Roles
@petabridge Petabridge.com
Roles - WebCrawler Sample
@petabridge Petabridge.com
Demo!*
*fingers crossed
@petabridge Petabridge.com
See WebCrawler for yourself
@petabridge Petabridge.com
Subscribe for more tutorials!
Click here to master Akka.Cluster, with
Petabridge’s Advanced Clustering
Training.
Thank you!