akka-remoting

Getting Akka.NET to connect to a remote addresses

拈花ヽ惹草 提交于 2020-01-24 07:49:22
问题 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 machine and have run into some difficulty. The code is extremely simple: Client Code : var config = ConfigurationFactory.ParseString(@" akka { log-config-on-start = on stdout-loglevel = DEBUG loglevel = DEBUG actor { provider = ""Akka.Remote

“max allowed size 128000 bytes, actual size of encoded class scala” error in akka remoting

旧时模样 提交于 2019-12-21 08:54:50
问题 I want to use Akka Remoting to exchange message over network between actors, but for large String message i got the following error: akka.remote.OversizedPayloadException: Discarding oversized payload sent to Actor :: max allowed size 128000 bytes , actual size of encoded class scala. How can i fix this limitation? 回答1: I add the following configuration and now everything is ok: akka { actor { provider = "akka.remote.RemoteActorRefProvider" } remote { maximum-payload-bytes = 30000000 bytes

Akka.Net Streams and remoting (Sink.ActorRefWithAck)

我与影子孤独终老i 提交于 2019-12-13 04:00:52
问题 I've made quite a simple implementation with Akka.net Streams using Sink.ActorRefWithAck : a subscriber asks for a large string to a publisher which sends it by slices. It works perfectly fine locally (UT) but not remotely . And I cannot understand what's wrong? Concretly: the subscriber is able to send the request to the publisher which responds with an OnInit message but then the OnInit.Ack will never goes back to the publisher. This Ack message ends up as a dead letter : INFO Akka.Actor

“max allowed size 128000 bytes, actual size of encoded class scala” error in akka remoting

[亡魂溺海] 提交于 2019-12-04 02:40:01
I want to use Akka Remoting to exchange message over network between actors, but for large String message i got the following error: akka.remote.OversizedPayloadException: Discarding oversized payload sent to Actor :: max allowed size 128000 bytes , actual size of encoded class scala. How can i fix this limitation? I add the following configuration and now everything is ok: akka { actor { provider = "akka.remote.RemoteActorRefProvider" } remote { maximum-payload-bytes = 30000000 bytes netty.tcp { hostname = "127.0.0.1" port = 2552 message-frame-size = 30000000b send-buffer-size = 30000000b