Questions tagged [akka-remoting]

Akka is a library for building concurrent scalable applications using the Actor Model. Akka remoting is designed for communication in a peer-to-peer fashion. The remoting capabilities of Akka 2.0 are really powerful.

Akka is a toolkit and runtime for building highly concurrent, distributed, and resilient message-driven applications on the JVM. It helps in building concurrent scalable applications using the Actor Model. Akka remoting is designed for communication in a peer-to-peer fashion. The remoting capabilities of Akka 2.0 are really powerful.
Remote actor is an actor which listens on some given port. The remoting contains functionality not only to lookup a remote actor and send messages to it but also to deploy actors on remote nodes. These two types of interaction are referred to as: Lookup, Creation
It is most commonly used in distributed applications that run across the network.

63 questions
0
votes
1 answer

How to broadcast the same string message to all actors via ConsistentHashingPool in akka

I am new to Akka and stuck with this issue. I have 4 actors but Somehow the broadcast message is always going to one actor here is a sample code def hashMapping: ConsistentHashMapping = { case ReduceNameTitlePair(name,title) => { …
0
votes
1 answer

Why does Akka not return address/host info?

Akka 2.5 here. I have a need to determine if a particular ActorRef is located on the same JVM as my application. My best attempt: someActor.path().address().host().isEmpty() ...is returning true for me (its empty; no address/host info available).…
hotmeatballsoup
  • 385
  • 6
  • 58
  • 136
0
votes
1 answer

Cannot establish remote communication with Akka

I've only started to use Akka and Scala recently and I'm trying to make a simple project that implements basic Akka remoting. When I try the following code without remoting everything works fine however when I put the database actor on a remote…
Yazly
  • 13
  • 3
0
votes
1 answer

Can i restart a remote Akka Actor?

I am assuming that A supervisor Actor is Supervising a remote actor. Is there any way to Restart the remote actor if that actor failed while processing the request. And if it is not possible the can anyone suggest me a way to solve this issue. Thank…
Prog_G
  • 1,539
  • 1
  • 8
  • 22
0
votes
1 answer

Akka Client actor connecting to Server actor system

I have server actor running in the background. The basic operation of the server actor is to get a key and a value pair. Once it receives the pair, it stores it in a map and returns it when asked. Now, I have a client actor. I want to the connect to…
bumblebee
  • 1,811
  • 12
  • 19
0
votes
1 answer

Creating Remote Actors Programmatically is not working

I am creating remote akka actor programmatically. Below is the Program - package remoting.programatic.demo import akka.actor.{ActorSystem, Props} import com.typesafe.config.ConfigFactory import remoting.config.demo.RemoteActor object…
user51
  • 8,843
  • 21
  • 79
  • 158
0
votes
0 answers

Unreachable remote akka actor

I'm trying to send a message to an actor that is not brought up yet. When I do so, I see following message on the console but how to capture this error programatically / through configuration. [WARN] [09/25/2017 14:15:01.127]…
s.r
  • 2,507
  • 3
  • 22
  • 32
0
votes
2 answers

Error using akka remoting with artery over docker instances

First of all, sorry for my english. Google translate helps me a lot, haha. My problem is this: I have two example projects developed with akka and java: example-remote-client.jar and example-remote-server.jar I'm using artery serialization, and and…
Federico Saenz
  • 512
  • 1
  • 6
  • 21
0
votes
2 answers

Are serializers the right spot to remove shared state from Akka messages?

I am working on a distributed algorithm and decided to use a Akka to scale it across machines. The machines need to exchange messages very frequently and these messages reference some immutable objects that exist on every machine. Hence, it seems…
0
votes
1 answer

Broadcast message to actors watching a particular actor?

How can I broadcast a message to all actors that are watching a particular actor? For context, suppose I have a AuctionActor (which is potentially a remote actor) that is being watched by a large number of AuctionParticipantActor types. I would…
davidrpugh
  • 4,363
  • 5
  • 32
  • 46
0
votes
1 answer

AKKA: Confusion about programmatic remote deployment

I am using akka remote deployment. I used logging to ensure if the actor has successfully deployed remotely. Here is my log info [adaptiveCEP-akka.actor.default-dispatcher-18]…
anasanjaria
  • 1,308
  • 1
  • 15
  • 19
0
votes
1 answer

SelectChildName messages from RemoteDeadLetterActorRef

I have two actor systems that communicate via akka remoting. When I take a look into the JVM heap I am seeing (too) many instances of akka.dispatch.Envelope containing SelectChildName messages from…
mike
  • 133
  • 1
  • 1
  • 2
0
votes
1 answer

Akka Remoting: Custom Kryo serializer for org.opencv.core.Mat

I'm having trouble to implement a Kryo serializer for a org.opencv.core.Mat object representing e.g. a frame of a video file. The idea is that an Akka ActorSystem A sends a video frame in greyscale to a system B in order to detect objects in it…
Toaditoad
  • 254
  • 2
  • 12
0
votes
1 answer

Akka remote: is it possible to work with classes from two differents app which don't have the same package name?

I have two applications communicating by Akka remote. I have one class in my first application in a pachage a: @SerialVersionUID(42L) case class A() and the same one in my second application but in a different package…
Simon
  • 6,025
  • 7
  • 46
  • 98
0
votes
1 answer

Akka round-robin: Sending response from remote routees to sender

I am using Akka Cluster (version 2.4.10) with few nodes designated for "front-end" role and few others as "workers". The workers are on remote machines. The incoming work is distributed by the front-end actor to workers by round-robin routing. The…
Jegan
  • 1,721
  • 1
  • 20
  • 25