src:
How to send a message to an actor from another remote application
ActorSelection remoteGreeter = system.actorSelection("akka.tcp://accountapi@127.0.0.1:2552/user/greeter");
remoteGreeter.tell(new Greet("This is Remote Message"),ActorRef.noSender());
Akka Documents Summary:
RemoteActor works similarly to LocalActor and is scalable.
more info : https://getakka.net/articles/Remoting/ - It is described in .net code, but it is the same as the concept of java.
related src:
akka {
actor {
provider = remote
}
remote {
enabled-transports = ["akka.remote.netty.tcp"]
netty.tcp {
hostname = "0.0.0.0"
port = 2552
}
}
}
@Test
public void testIt() {
new TestKit(system) {{
ActorRef probe = getRef();
ActorSelection accountGreeter =
system.actorSelection("akka.tcp://accountapi@0.0.0.0:2552/user/greeter");
accountGreeter.tell(new CMD_REMOTE(5,"hi"),getRef());
String expectMessage = expectMsgClass(Duration.ofSeconds(5),CMD_REMOTE.class).getMessage();
}};
}
related src:
Spring has a web total solution, and AKKA has a total solution for message processing. It may be a difficult attempt to harmonize the two things, but it will be a good experience and we will prepare some samples.
- https://developer.lightbend.com/blog/2017-06-23-mtotm-akka-telemetry/index.html
- https://developer.lightbend.com/docs/console/current/user-guide/console.html
- Spring Boot with DDD : preparing....
- KAFKA Stream with DDD : preparing....



