Response without unmarshalling
Hello, i would like to send back an entity as response without unmashalling, ie the response of my endpoint should be the response of a call to an external service. Something like: get { Http()...
View ArticleWhat's the best practice to send data between actors?
I would like to transport immutable data between actors like 100MB. It seems not make sense to pass it with messages. Is there any good practice for this scenery? 3 posts - 2 participants Read full...
View ArticleAkka CQRS example question
Hello! I am looking into the provided CQRS example. While code is pretty self explanatory, I’m still trying to wrap my head around an issue. When you add an item: val entityRef =...
View ArticleShutdown actor system with blocking calls
Hi Akka Team in our project we are facing issues when shutting down the actor system which has threads blocked in await. I know that i should avoid using blocking calls inside the actor system but...
View ArticleFlowWithContext - Not printing the Sink response
Hi, I built streaming using source and sink as Rabbitmq.Using FlowWithContext to carry the context for each element. One message is in sourceQ, the stream processing and post to destinationQ. The flow...
View ArticleCan't join cluster after upgrade to 2.6 (Artery is explicitly turned off)
Hi guys I’m upgrading akka from 2.5 to 2.6 and I’m having problems with the new 2.6 nodes joining the existing 2.5 cluster. The cluster is using the kubernetes-api for service discovery, and it seems...
View ArticleUri.Query space character encoding
Hi! I’m not sure if this is bug, so I’ve decided to post it here first before raising issue on Github. I often use Uri with Query class to create request URL. Code example: val uri =...
View ArticleHow to implement search and visualisation
I’m starting to develop a project using AKKA and will be modelling flattish hierarchy of aggregate roots as actors deployed across a cluster e.g. Companies / Employees. Is there an idiomatic approach...
View ArticleAkka-HTTP: TcpIdleTimeoutException from singleRequest
Hi, We are currently having some problems in our systems where we get TcpIdleTimeoutExceptions when calling singleRequest after we haven’t had to make any requests for a period longer than the...
View ArticleAkka persistence spanner library causing NoSuchMethodError for google pubsub...
I am adding akka persistence spanner in a project which is already using pubsub from google. Adding com.lightbend.akka:akka-persistence-spanner_2.12:1.0.0.RC3 library to the project is causing the...
View ArticleAkka logging without logback
Due to constraints to use Scala 2.11 (for Spark 2.3) I’m using Akka 2.5.21 with typed actors. But I’m struggling to get logging to work, as I’m using log4j as backend with slf4j. My application.conf...
View ArticleUnable to consume kafka messages after adding KafkaClusterSharding
Hi, I am trying to implement akka sharded clusters with kafka in Java, so I got the weather station example :...
View ArticleWebsocket client add element to source dynamically
Hi all, i would like to keep multiple websocket client connections, and for each connection i will later send message, what would be the right way of implementing it? i have actors sharded, and in...
View ArticleAkka Sharded Cluster does not get messages from Kafka Consumer
Hey guys, I am on a quest to integrate Akka Sharded Cluster Java with Kafka, so I got the killrweather sample application from Lightbend website and modified it using the " Akka Cluster Sharding" doc...
View ArticleCreate, kill and create again an actor
Who could point me to the documentation on how to create and kill actors? From what I read from the docs I could kill any actor by sending akka.actor.PoisonPill Then I’m trying, just for experiment,...
View ArticleMergeHub not completing stream
We are having a problem with using distributed streams using a MergeHub. We are trying to create a stream that has a single Source and Sink running locally, and configure multiple remote streams which...
View ArticleHow to unit test akka actors in Java
I am using akka actors in my java project and I am facing difficulties while writing unit tests for the same. I have written sample code as mentioned below to illustrate my use case. MainActor is kind...
View ArticleSnapshot of ArrayList deserializes to ArrayList
Hi I use akka version 2.6.6 with scala version 2.13 for akka-serialization-jackson. I want to save a snapshot from an AbstractPersistentActor’s state: ArrayList<Foo> state where Foo is defined...
View ArticleAkka Projections 1.0.0-RC3 released
Dear hakkers, We’re happy to announce the latest release candidate of Akka Projections, version 1.0.0-RC3. If no serious bug is reported this RC3 will become 1.0.0 GA next week. We consider the API...
View ArticleAkka - low CPU usage (could my code go faster?)
Hi guys, I’ve got the following problem. I’ve got a network of ~100 Actors, all running locally. The code is more or less: There is one Actor “network” and 100 “nodes” network sends step to all the...
View Article