SlideShare una empresa de Scribd logo
1 de 37
Akka Remoting
By:
Girish Ch. Bharti
Software Consultant
Knoldus Software
Agenda
● What is akka remoting?
● Akka remoting capabilities
● Akka remoting features
● Challenges akka remoting solves
● Enabling akka remote
● Demo
What is remoting?
What is akka remoting?
“Akka module which provides an elegant
solution for communicating between actors
acros network are called Akka Remoting”
What is akka remoting?
Use cases
● Transaction processing (Online Gaming, Finance/Banking,
Trading, Statistics, Betting, Social Media, Telecom)
● Service backend (any industry, any app)
● Concurrency/parallelism (any app)
● Simulation (master/worker)
● Batch processing (any industry)
● Communications Hub (Telecom, Web media, Mobile media)
● Gaming and Betting (Online gaming, betting)
● Complex Event Stream Processing
Akka remoting capabilities
● Location transparency with RemoteActorRef
● Remote addressing
● Remote messaging
● Remote deployment
● Multiple network transports
Location transparency with
RemoteActorRef
● Write code that looks like it's communicating with
local actors
● But with just a few configuration settings your
actors can begin communicating with actors
hosted in remote processes in a way that's fully
location transparent to your code.
● RemoteActorRef:
Internal Api that is used when referencing the
Actor on a different node than its "home" node.
Remote addressing
● Address
- Protocol
- System
- Host
- Port
● ActorPath:
Actor path is a unique path to an actor that shows
the creation path up through the actor tree to the
root actor
Remote addressing
Addressing a Remote ActorSystem
Remote Messaging
Remote deployment
Multiple network transports
● TCP
● UDP
● SSL
● User defined
Akka remoting features
● Distributed by Default
● Ways in which Transparency is Broken
● How is Remoting Used?
● Peer-to-Peer vs. Client-Server
● Marking Points for Scaling Up with Routers
Distributed by Default
● Everything in Akka is designed to work in a
distributed setting
● All interactions of actors use purely message
passing and everything is asynchronous.
● Remote to local instead of trying to go from
local to remote (A Note on Distributed
Computing- Jim Waldo, Geoff Wyant,
November 1994)
Ways in which Transparency is
Broken
● All messages sent over the wire must be
serializable
● Everything needs to be aware of all interactions
being fully asynchronous
● Probability for a message to be lost is much
higher than within one JVM
● On single JVM it is closed to 0 but not 0
How is Remoting Used?
● Purely driven by configuration
● Application can be scaled out without having to
touch the code.
● Only piece of the API which allows
programmatic influence on remote deployment
is Props contain a field which may be set to a
specific Deploy instance
Peer-to-Peer vs. Client-Server
Peer-to-Peer vs. Client-Server
● If a system A can connect to a system B then
system B must also be able to connect to
system A.
● There is no system that only accepts
connections, and there is no system that only
initiates connections.
Marking Points for Scaling Up with
Routers
Marking Points for Scaling Up with
Routers
Challenges Remoting solves
● How to address actor systems living on remote hosts.
● How to address individual actors on remote actor
systems.
● How to turn messages to bytes on the wire.
(Serialization)
● How to manage low-level, network connections (and
reconnections) between hosts, detect crashed actor
systems and hosts, all transparently.
Enabling akka remote
Build.sbt
Enabling akka remote
● Transport (Communication protocol)
● Address (Actor addresses)
● Endpoint (Host:Port)
● Association (Active Link between nodes)
Enabling akka remote
While starting both actor systems
The Association Process
The Association Process
Addressing a Remote ActorSystem
Types of Remote Interaction
● Akka has two ways of using remoting:
● Lookup :
Used to look up an actor on a remote node with
actorSelection(path)
● Creation :
Used to create an actor on a remote node with
actorOf(Props(...), actorName)
Demo
The Use Case: Runtime population
Code in action
Refrences
● Https://doc.akka.io/docs/akka/2.5/remoting.html
● https://getakka.net/articles/Remoting/
● https://petabridge.com/blog/akka-internals-how-
akka-remote-connections-work/
Thank You

Más contenido relacionado

La actualidad más candente

Centralized monitoring station for it computing and network infrastructure
Centralized monitoring station for it computing and network infrastructureCentralized monitoring station for it computing and network infrastructure
Centralized monitoring station for it computing and network infrastructure
MOHD ARISH
 

La actualidad más candente (20)

Software Defined Networking - 1
Software Defined Networking - 1Software Defined Networking - 1
Software Defined Networking - 1
 
Introduction to Akka Serverless
Introduction to Akka ServerlessIntroduction to Akka Serverless
Introduction to Akka Serverless
 
Operating Consul as an Early Adopter
Operating Consul as an Early AdopterOperating Consul as an Early Adopter
Operating Consul as an Early Adopter
 
Iuwne10 S02 L05
Iuwne10 S02 L05Iuwne10 S02 L05
Iuwne10 S02 L05
 
SplitVPN
SplitVPNSplitVPN
SplitVPN
 
Nagios Conference 2014 - Bryan Heden - 10,000 Services Across The State of Ohio
Nagios Conference 2014 - Bryan Heden - 10,000 Services Across The State of OhioNagios Conference 2014 - Bryan Heden - 10,000 Services Across The State of Ohio
Nagios Conference 2014 - Bryan Heden - 10,000 Services Across The State of Ohio
 
Software Define Networking (SDN)
Software Define Networking (SDN)Software Define Networking (SDN)
Software Define Networking (SDN)
 
JP - Socket Programming
JP - Socket ProgrammingJP - Socket Programming
JP - Socket Programming
 
Software defined networks and openflow protocol
Software defined networks and openflow protocolSoftware defined networks and openflow protocol
Software defined networks and openflow protocol
 
Software-Defined Networking Layers presentation
Software-Defined Networking Layers presentationSoftware-Defined Networking Layers presentation
Software-Defined Networking Layers presentation
 
Software defined network
Software defined network Software defined network
Software defined network
 
What's new in Neutron Juno
What's new in Neutron JunoWhat's new in Neutron Juno
What's new in Neutron Juno
 
Multi-tenant Framework for SDN Virtualization
Multi-tenant Framework for SDN VirtualizationMulti-tenant Framework for SDN Virtualization
Multi-tenant Framework for SDN Virtualization
 
SDN (Software Defined Networking) Controller
SDN (Software Defined Networking) ControllerSDN (Software Defined Networking) Controller
SDN (Software Defined Networking) Controller
 
Java One 2001
Java One 2001Java One 2001
Java One 2001
 
VLAN
VLANVLAN
VLAN
 
Stand Alone Chat Client
Stand Alone Chat ClientStand Alone Chat Client
Stand Alone Chat Client
 
Vlan
VlanVlan
Vlan
 
Drone Hijacking
Drone HijackingDrone Hijacking
Drone Hijacking
 
Centralized monitoring station for it computing and network infrastructure
Centralized monitoring station for it computing and network infrastructureCentralized monitoring station for it computing and network infrastructure
Centralized monitoring station for it computing and network infrastructure
 

Similar a Akka Remoting

FlowER Erlang Openflow Controller
FlowER Erlang Openflow ControllerFlowER Erlang Openflow Controller
FlowER Erlang Openflow Controller
Holger Winkelmann
 
SDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center NetworkingSDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center Networking
Thomas Graf
 
DTS Solution - Software Defined Security v1.0
DTS Solution - Software Defined Security v1.0DTS Solution - Software Defined Security v1.0
DTS Solution - Software Defined Security v1.0
Shah Sheikh
 
5G-USA-Telemetry
5G-USA-Telemetry5G-USA-Telemetry
5G-USA-Telemetry
snrism
 

Similar a Akka Remoting (20)

Software Defined Networking: Primer
Software Defined Networking: Primer Software Defined Networking: Primer
Software Defined Networking: Primer
 
Software Defined Networking
Software Defined NetworkingSoftware Defined Networking
Software Defined Networking
 
Actor model in .NET - Akka.NET
Actor model in .NET - Akka.NETActor model in .NET - Akka.NET
Actor model in .NET - Akka.NET
 
FlowER Erlang Openflow Controller
FlowER Erlang Openflow ControllerFlowER Erlang Openflow Controller
FlowER Erlang Openflow Controller
 
SDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center NetworkingSDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center Networking
 
Network Virtualization & Software-defined Networking
Network Virtualization & Software-defined NetworkingNetwork Virtualization & Software-defined Networking
Network Virtualization & Software-defined Networking
 
Open Source Networking Days- Service Mesh
Open Source Networking Days- Service MeshOpen Source Networking Days- Service Mesh
Open Source Networking Days- Service Mesh
 
Kuma + Kong
Kuma + KongKuma + Kong
Kuma + Kong
 
Webinar: The Software Matters in Open Networking
Webinar: The Software Matters in Open NetworkingWebinar: The Software Matters in Open Networking
Webinar: The Software Matters in Open Networking
 
Excitingly simple multi-path OpenStack networking: LAG-less, L2-less, yet ful...
Excitingly simple multi-path OpenStack networking: LAG-less, L2-less, yet ful...Excitingly simple multi-path OpenStack networking: LAG-less, L2-less, yet ful...
Excitingly simple multi-path OpenStack networking: LAG-less, L2-less, yet ful...
 
DTS Solution - Software Defined Security v1.0
DTS Solution - Software Defined Security v1.0DTS Solution - Software Defined Security v1.0
DTS Solution - Software Defined Security v1.0
 
5G-USA-Telemetry
5G-USA-Telemetry5G-USA-Telemetry
5G-USA-Telemetry
 
Presentation on ccna
Presentation on ccnaPresentation on ccna
Presentation on ccna
 
KrakenD API Gateway
KrakenD API GatewayKrakenD API Gateway
KrakenD API Gateway
 
PLNOG 13: Nicolai van der Smagt: SDN
PLNOG 13: Nicolai van der Smagt: SDNPLNOG 13: Nicolai van der Smagt: SDN
PLNOG 13: Nicolai van der Smagt: SDN
 
Opencontrail network virtualization
Opencontrail network virtualizationOpencontrail network virtualization
Opencontrail network virtualization
 
Introduction to Software Defined Networking (SDN) presentation by Warren Finc...
Introduction to Software Defined Networking (SDN) presentation by Warren Finc...Introduction to Software Defined Networking (SDN) presentation by Warren Finc...
Introduction to Software Defined Networking (SDN) presentation by Warren Finc...
 
Introduction to Software Defined Networking (SDN)
Introduction to Software Defined Networking (SDN)Introduction to Software Defined Networking (SDN)
Introduction to Software Defined Networking (SDN)
 
Zero Downtime JEE Architectures
Zero Downtime JEE ArchitecturesZero Downtime JEE Architectures
Zero Downtime JEE Architectures
 
DeviceHive overview, Tatyana Matvienko
DeviceHive overview, Tatyana MatvienkoDeviceHive overview, Tatyana Matvienko
DeviceHive overview, Tatyana Matvienko
 

Más de Knoldus Inc.

Más de Knoldus Inc. (20)

Supply chain security with Kubeclarity.pptx
Supply chain security with Kubeclarity.pptxSupply chain security with Kubeclarity.pptx
Supply chain security with Kubeclarity.pptx
 
Mastering Web Scraping with JSoup Unlocking the Secrets of HTML Parsing
Mastering Web Scraping with JSoup Unlocking the Secrets of HTML ParsingMastering Web Scraping with JSoup Unlocking the Secrets of HTML Parsing
Mastering Web Scraping with JSoup Unlocking the Secrets of HTML Parsing
 
Akka gRPC Essentials A Hands-On Introduction
Akka gRPC Essentials A Hands-On IntroductionAkka gRPC Essentials A Hands-On Introduction
Akka gRPC Essentials A Hands-On Introduction
 
Entity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptxEntity Core with Core Microservices.pptx
Entity Core with Core Microservices.pptx
 
Introduction to Redis and its features.pptx
Introduction to Redis and its features.pptxIntroduction to Redis and its features.pptx
Introduction to Redis and its features.pptx
 
GraphQL with .NET Core Microservices.pdf
GraphQL with .NET Core Microservices.pdfGraphQL with .NET Core Microservices.pdf
GraphQL with .NET Core Microservices.pdf
 
NuGet Packages Presentation (DoT NeT).pptx
NuGet Packages Presentation (DoT NeT).pptxNuGet Packages Presentation (DoT NeT).pptx
NuGet Packages Presentation (DoT NeT).pptx
 
Data Quality in Test Automation Navigating the Path to Reliable Testing
Data Quality in Test Automation Navigating the Path to Reliable TestingData Quality in Test Automation Navigating the Path to Reliable Testing
Data Quality in Test Automation Navigating the Path to Reliable Testing
 
K8sGPTThe AI​ way to diagnose Kubernetes
K8sGPTThe AI​ way to diagnose KubernetesK8sGPTThe AI​ way to diagnose Kubernetes
K8sGPTThe AI​ way to diagnose Kubernetes
 
Introduction to Circle Ci Presentation.pptx
Introduction to Circle Ci Presentation.pptxIntroduction to Circle Ci Presentation.pptx
Introduction to Circle Ci Presentation.pptx
 
Robusta -Tool Presentation (DevOps).pptx
Robusta -Tool Presentation (DevOps).pptxRobusta -Tool Presentation (DevOps).pptx
Robusta -Tool Presentation (DevOps).pptx
 
Optimizing Kubernetes using GOLDILOCKS.pptx
Optimizing Kubernetes using GOLDILOCKS.pptxOptimizing Kubernetes using GOLDILOCKS.pptx
Optimizing Kubernetes using GOLDILOCKS.pptx
 
Azure Function App Exception Handling.pptx
Azure Function App Exception Handling.pptxAzure Function App Exception Handling.pptx
Azure Function App Exception Handling.pptx
 
CQRS Design Pattern Presentation (Java).pptx
CQRS Design Pattern Presentation (Java).pptxCQRS Design Pattern Presentation (Java).pptx
CQRS Design Pattern Presentation (Java).pptx
 
ETL Observability: Azure to Snowflake Presentation
ETL Observability: Azure to Snowflake PresentationETL Observability: Azure to Snowflake Presentation
ETL Observability: Azure to Snowflake Presentation
 
Scripting with K6 - Beyond the Basics Presentation
Scripting with K6 - Beyond the Basics PresentationScripting with K6 - Beyond the Basics Presentation
Scripting with K6 - Beyond the Basics Presentation
 
Getting started with dotnet core Web APIs
Getting started with dotnet core Web APIsGetting started with dotnet core Web APIs
Getting started with dotnet core Web APIs
 
Introduction To Rust part II Presentation
Introduction To Rust part II PresentationIntroduction To Rust part II Presentation
Introduction To Rust part II Presentation
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Configuring Workflows & Validators in JIRA
Configuring Workflows & Validators in JIRAConfiguring Workflows & Validators in JIRA
Configuring Workflows & Validators in JIRA
 

Último

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Último (20)

How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 

Akka Remoting

  • 1. Akka Remoting By: Girish Ch. Bharti Software Consultant Knoldus Software
  • 2. Agenda ● What is akka remoting? ● Akka remoting capabilities ● Akka remoting features ● Challenges akka remoting solves ● Enabling akka remote ● Demo
  • 4. What is akka remoting? “Akka module which provides an elegant solution for communicating between actors acros network are called Akka Remoting”
  • 5. What is akka remoting?
  • 6. Use cases ● Transaction processing (Online Gaming, Finance/Banking, Trading, Statistics, Betting, Social Media, Telecom) ● Service backend (any industry, any app) ● Concurrency/parallelism (any app) ● Simulation (master/worker) ● Batch processing (any industry) ● Communications Hub (Telecom, Web media, Mobile media) ● Gaming and Betting (Online gaming, betting) ● Complex Event Stream Processing
  • 7. Akka remoting capabilities ● Location transparency with RemoteActorRef ● Remote addressing ● Remote messaging ● Remote deployment ● Multiple network transports
  • 8. Location transparency with RemoteActorRef ● Write code that looks like it's communicating with local actors ● But with just a few configuration settings your actors can begin communicating with actors hosted in remote processes in a way that's fully location transparent to your code. ● RemoteActorRef: Internal Api that is used when referencing the Actor on a different node than its "home" node.
  • 9. Remote addressing ● Address - Protocol - System - Host - Port ● ActorPath: Actor path is a unique path to an actor that shows the creation path up through the actor tree to the root actor
  • 11. Addressing a Remote ActorSystem
  • 14. Multiple network transports ● TCP ● UDP ● SSL ● User defined
  • 15. Akka remoting features ● Distributed by Default ● Ways in which Transparency is Broken ● How is Remoting Used? ● Peer-to-Peer vs. Client-Server ● Marking Points for Scaling Up with Routers
  • 16. Distributed by Default ● Everything in Akka is designed to work in a distributed setting ● All interactions of actors use purely message passing and everything is asynchronous. ● Remote to local instead of trying to go from local to remote (A Note on Distributed Computing- Jim Waldo, Geoff Wyant, November 1994)
  • 17. Ways in which Transparency is Broken ● All messages sent over the wire must be serializable ● Everything needs to be aware of all interactions being fully asynchronous ● Probability for a message to be lost is much higher than within one JVM ● On single JVM it is closed to 0 but not 0
  • 18. How is Remoting Used? ● Purely driven by configuration ● Application can be scaled out without having to touch the code. ● Only piece of the API which allows programmatic influence on remote deployment is Props contain a field which may be set to a specific Deploy instance
  • 20. Peer-to-Peer vs. Client-Server ● If a system A can connect to a system B then system B must also be able to connect to system A. ● There is no system that only accepts connections, and there is no system that only initiates connections.
  • 21. Marking Points for Scaling Up with Routers
  • 22. Marking Points for Scaling Up with Routers
  • 23. Challenges Remoting solves ● How to address actor systems living on remote hosts. ● How to address individual actors on remote actor systems. ● How to turn messages to bytes on the wire. (Serialization) ● How to manage low-level, network connections (and reconnections) between hosts, detect crashed actor systems and hosts, all transparently.
  • 26. Enabling akka remote ● Transport (Communication protocol) ● Address (Actor addresses) ● Endpoint (Host:Port) ● Association (Active Link between nodes)
  • 28. While starting both actor systems
  • 31. Addressing a Remote ActorSystem
  • 32. Types of Remote Interaction ● Akka has two ways of using remoting: ● Lookup : Used to look up an actor on a remote node with actorSelection(path) ● Creation : Used to create an actor on a remote node with actorOf(Props(...), actorName)
  • 33. Demo
  • 34. The Use Case: Runtime population
  • 36. Refrences ● Https://doc.akka.io/docs/akka/2.5/remoting.html ● https://getakka.net/articles/Remoting/ ● https://petabridge.com/blog/akka-internals-how- akka-remote-connections-work/