Questions tagged [akka-remote-actor]

Akka remoting is designed for communication in a peer-to-peer fashion. It has limitations for client-server setups. In particular Akka Remoting does not work transparently with Network Address Translation and Load Balancers, among others.

Akka remoting is designed for communication in a peer-to-peer fashion and it has limitations for client-server setups. In particular Akka Remoting does not work transparently with Network Address Translation and Load Balancers, among others.

Peer-to-Peer vs. Client-Server

1.Communication between involved systems is symmetric: if a system A can connect to a system B then system B must also be able to connect to system A independently.

2.The role of the communicating systems are symmetric in regards to connection patterns: there is no system that only accepts connections, and there is no system that only initiates connections.

The consequence of these decisions is that it is not possible to safely create pure client-server setups with predefined roles (violates assumption 2) and using setups involving Network Address Translation or Load Balancers (violates assumption 1).

For client-server setups it is better to use HTTP or Akka I/O.

Akka with NAT, Load Balancing or Docker

Akka remoting can work in these particular cases, but it involves some configuration changes.

Reference :

http://doc.akka.io/docs/akka/snapshot/general/remoting.html#remoting

http://doc.akka.io/docs/akka/snapshot/scala/remoting.html

123 questions
6
votes
2 answers

How can I encrypt (using SSL) Akka Remoting messages?

I forked this simple server-client akka project: https://github.com/roclas/akka-irc which is an IRC-like chat and I'm trying to encode messages. In my master branch, if I start a server (sbt run and then select option 2) and then a client (sbt run…
Carlos
  • 331
  • 2
  • 8
5
votes
1 answer

Getting Akka.NET to connect to a remote addresses

All the demos I have found showing how to get started with remoting in Akka.NET demonstrate the simplest use case where the two actors are running on the same machine using localhost. I am trying to get an Akka.NET actor to connect to a remote…
Maxim Gershkovich
  • 45,951
  • 44
  • 147
  • 243
5
votes
1 answer

Akka remote routees hostname configuration issue

I am experiencing the akka remote feature for a tool I am making. Actually, I was able to make core and remote systems works in the same host with diferent ports. Note that my remote servers runs over a router, as explained in akka docs. Now I am…
Raphael do Vale
  • 931
  • 2
  • 11
  • 28
4
votes
1 answer

How to watch remote Akka Actor?

I am learning akka-remote and one of the things I do in my LocalActorSystem is getting remote actor reference and send messages to him class LocalActor extends Actor { val remote =…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
3
votes
0 answers

Akka.NET actor system initialization suddenly throwing EndpointDisassociatedExceptions. (F#)

I'm new to Akka; had a local actor system talking to a remote system on another machine in our network just fine for a couple of days, and then it just stopped working for reasons I've not been able to fathom. I'm aware that the severing of an…
MiloDC
  • 2,373
  • 1
  • 16
  • 25
3
votes
1 answer

Apache Spark wrong akka-remote netty version

When spark is running test with sbt. I get this exception : 18:58:49.049 [sparkDriver-akka.actor.default-dispatcher-2] ERROR akka.actor.ActorSystemImpl - Uncaught fatal error from thread [sparkDriver-akka.remote.default-remote-dispatcher-5] shutting…
crak
  • 1,635
  • 2
  • 17
  • 33
3
votes
2 answers

Improving Akka Remote Throughput

We're thinking about using Akka for client server communications, and trying to benchmark data transfer. Currently we're trying to send a million messages where each message is a case class with 8 string fields. At this point we're struggling to…
3
votes
2 answers

akka.remote.RemoteTransportException: No transport is loaded for protocol

I have noticed that Akka 2.3.2 does not have the akka-remote-test-experiment. Can anyone suggest to me on how to solve this problem: [ERROR] [05/23/2014 12:33:38.765] [Configurations-akka.actor.default-dispatcher-15]…
Tumi
  • 91
  • 2
  • 13
2
votes
1 answer

Akka.NET and MVVM

I am playing around with using Akka.NET in a new WPF .NET Framework application I am currently working on. Mostly the process of using actors in your application seems pretty self explanitory, however when it comes to actually utilising the actor…
Maxim Gershkovich
  • 45,951
  • 44
  • 147
  • 243
2
votes
0 answers

akka cluster/remoting dead latter on high volume, slower subscriber

Trying to understand what layer of AKKA clustering is sending occasional messages to dead latter when volume increase or all receiving actor are busy doing the work as well as how to tune it to eliminate such behavior. Here is basic topology: 2…
user629299
  • 141
  • 1
  • 9
2
votes
1 answer

Performance issue sending larger messages via akka remote actors

The responses to concurrent requests to remote actors were taking long time to respond, aka 1 request takes 300 ms, but 100 concurrent requests took almost 30 seconds to complete! So it almost looks like the requests are being executed sequentially!…
JVS
  • 521
  • 6
  • 18
2
votes
1 answer

Akka.NET: can't send a list message to other ActorSystem

I'm new to Akka.NET. I have recently started to do my university project and faced the strange problem. I have two ActorSystems in two different desktop applications. In the first ActorSystem I'm sending the message ZippedAddressListMessage between…
2
votes
0 answers

Akka Remoting: Multiple Deployment Config using Props.withDeploy(... ).

I am creating a sample with Akka Remote Actor with RemoteLookupProxyForwarder as define in Akka In Action book. My requirements are like create an actor remotely but using code configuration. RemoteLookupProxyForwarder is work like to lookup remote…
Harmeet Singh Taara
  • 6,483
  • 20
  • 73
  • 126
2
votes
1 answer

How can I send messages to a remote actor via CLI with Akka remoting?

I have a remote actor, Bar and a local actor, Foo. I want to use Foo to pass messages to Bar on each invocation of a CLI. Bar can be passed messages successfully, but Foo hangs while waiting for a message. To fix this, I added a sys.exit(0) at the…
erip
  • 16,374
  • 11
  • 66
  • 121
2
votes
0 answers

Disassociated exception in Akka.Remoting

Using Akka.net I am trying to implement simple scenario. I have created 2 servers and 1 client, where Servers receives the messages sent from client and processes it. Setup works fine sometimes and sometimes it gives following error, I am not able…
Pankaj Chouthmal
  • 195
  • 1
  • 11
1
2 3
8 9