Error upgrading to Scala 2.13.6 and Akka 2.6.16
Code import akka.http.scaladsl.model.ContentType import akka.http.scaladsl.model.HttpCharsets. `UTF-8` import akka.http.scaladsl.model.MediaTypes.{ `application/json` , `application/xml` } object...
View ArticleAkka Http closes connection during response processing
I am facing issue with closed connection while using akka http client and processing response with huge file(100MB+) using Http().singleRequest(). Akka-http version 10.2.4 I am making 2 concurrent...
View ArticleShutting down/Stopping the BehaviorTestKit
I am currently using the BehaviorTestKit (BehaviorTestKit) to perform synchronous testing of an actor that I have created. I send the test actor I have created (using BehaviorTestKit#create) my stop...
View ArticleAkka 2.6.17 released
Dear hakkers, We are pleased to announce a new patch release of Akka 2.6. Noteworthy additions and improvements in this release: API of Durable State is stable and ready for production API Sharded...
View ArticleCustom Directive that returns case class?
Forgive the noob question. I currently have a Directive set up like: def combinedDirective: Directive[(String, RemoteAddress)] = headerValueByName("blah") & extractClientIP Is it possible to...
View ArticleTyped unstash/unstashAll scaladoc not understandable?
akka.actor.typed.scaladsl.StashBuffer#unstashAll def unstashAll(behavior: Behavior[T]): Behavior[T] “Process all stashed messages with the behavior and the returned Behavior from each processed...
View ArticleTCP Stream restart attempts stop with cluster client. #30807
I’m using akka 2.5.32 and seing some, imo, buggy behaviour, in the akka cluster client retry mechanism to re-establish a TCP connection. These are the relevant log lines 2021-10-12 14:49:54.322+0000...
View ArticleSingletonCluster Actor not getting intialized properly (Unable to send...
problem: I’m creating a cluster singleton actor, but the actor doesn’t seem to be getting created ? when i try to register it with the receptionist, it doesn’t get registered. when i try to send a...
View ArticleUse of Udp in akka-typed
The Classic Akka API provides IO.Udp object which implements a UDP connection. When a new port is opened the Udp actor responds with Bound() event. In the classic system, I suppose to save the...
View ArticleEventSourceTestKit issues, tips, tricks?
I’ve started using the EventSourceTestKit to unit test interactions with a persistent entity. I’ve run into a few issues, that perhaps the community can advise on. It’s not clear to me how to provide...
View ArticleCommitting a Kafka cursor after chunk upload on multipart S3 upload
I am in the process of creating a backup tool for Kafka that persists the Kafka messages in an AWS S3 bucket. One of the goals of the tool is to be stateless so we use AWS S3 API to handle state...
View ArticleStreamTcpException for incoming requests
Hy! I have a custom binding the code is exactly this; val settings = ServerSettings(actorSystem) val (bind, done) = Http() .newServerAt("0.0.0.0", 9000) .connectionSource()...
View ArticleCluster singleton to use custom mailbox and dispatcher in typed actor system
In Java, the singleton actor in the system is initialized using the following construct: ClusterSingleton singleton = ClusterSingleton.get(system); ActorRef<Counter.Command> proxy =...
View ArticleExecuting a flow on each element in a list as part of a batch operation
I’m developing a akka-streams(the latest release from v2.6.x) and kafka based system where I’ve got to perform a very slow(network) call for each event passed into the system. I’ve designed the system...
View ArticleAkka gRPC Binding Multiple PowerApis Correctly
(creating a new topic here since akka-grpc github issue template asked me to do so) To short, I am looking for the way to properly bind multiple power-apis to akka-http routes. The current problem...
View ArticleAdaptiveLoadBalancing with Akka Typed
Hello, I would like to implement the AdaptiveLoadBalancing with a Receptionist in cluster. I cannot find a way to make it work with typed actors. What alternatives do I have if I want to load balance...
View ArticleCount total living entities in akka cluster sharding
What is the way of counting total living entities in akka cluster sharding? 2 posts - 2 participants Read full topic
View ArticleHow to close a web socket connection by server?
Hello guys, i have a question. How to close connection by server? I asked this on stackoverflow , but still there are no answers. Link: kotlin - Akka. How to close a websocket connection from server?...
View ArticleApplication exit code to reflect actor system shutdown cause
What is the best way to have application exit code reflect actor system shutdown cause? The code below reflects the idea, but does not work (it’s always Success(Done)). sealed trait AppProtocol val...
View ArticleChaining PartialFunctions execute side effects 2 times in FSM
According to the andThen method definition in PartialFunction trait in scala 12.13.6: /** Composes this partial function with a transformation function that * gets applied to results of this partial...
View Article