Idempotent Producer in Alpakka Kafka
Hi, I see that Alpakka Kafka support transaction and therefore exactly one semantic. However, I was wondering if it support the underlying producer being set as an Idempotent Producer i.e....
View ArticleAkka.kafka.consumer failed consumer actor terminated
After terminated kafka consumer .unable to reconsume by consumer. getting akka.kafka.consumer failed consumer actor terminated. Can it be possible to reconnect after terminate of kafka consumer....
View ArticleWrite to file from endless stream
Heys guys, I have a endless streams (a consumer from a queue), that append each element to a file (file path depends on meta data). source.via(business()).via(saveToFile()).via(business()) Of course,...
View ArticleWeird Akka gRPC w/ Discovery behaviour
Hello - I’ve been trying to get config-based akka discovery setup for one of my gRPC services, but I’m struggling to make it work. First off, when I do this, everything works fine: val settings =...
View ArticlePOST request with Content-Length header produces "Sending an 2xx 'early'...
Hello, I am getting the following WARN’s [2021-09-10 16:41:57,406] [WARN] [akka.actor.ActorSystemImpl] [default-akka.actor.default-dispatcher-16] [akka.actor.ActorSystemImpl(default)] - Sending an 2xx...
View ArticleAlpakka FCM (Firebase Cloud Messaging)
I created a project using the 3.0.3 version of the Alpakka Google FCM connector. In its API the FcmSettings is said to be deprecated in favor of the GoogleSettings from the Alpakka Google Common...
View ArticleAsynchronously generate oauth tokens
Say I need to get an oauth token before calling another service. Let’s also say that that token expires after 15 minutes and can be cached for use in multiple requests. How can I use akka or akka-http...
View ArticleAkka Projection Partition Offset reset
Used Akka Projection (slick db, actor handler, AkkaProjectionVersion = 1.2.2) with 2 cluster singleton projections per node, 2 nodes in total. Noticed a time when half of the partitions started...
View ArticleCurrent best practices for typed actor systems
Hy! I was out of the loop with (typed-)actors in the last years, and I tried to rewrite/refactor some old actors to the new typed ones, and I have some questions. Before typed, we created 1 AS in the...
View ArticleDiscovering cluster nodes in kubernetes across two namespaces
Hello We want to migrate an akka-cluster service to a new kubernetes namespace. We’d like to achieve this without downtime, so our battle plan is to start a few pods in the new namespace that form a...
View ArticleKafka consumer
Hello, I want to store the kafka offset externally and this plainPartitionedManualOffsetSource seems to be a good fit for my use case. I have a working code without any commit using plainSource that...
View ArticleJava examples and documentations
Hello, Its really depressing and very difficult to find documentation and examples for Alpakka kafka / streams in java. The documentation are available in scala only or am in missing somethings ? The...
View ArticleJFR in Akka remote
Any reason why java flight recorder is added as dependency to Akka remote? We are stepping up from Akka 2.5.29 to 2.6.x and we could see there is a strict dependency for jdk.jfr. We do not want any...
View ArticleActor response message doesn't use serialization
It seems that a response message, which is sent from a typed actor, skips a protobuf serialization defined in the configuration. There is a simple akka typed microservice that is written using...
View ArticlePackaging akka microservice into a fat jar using Maven
I am trying to package an Akka microservice as a fat jar using the Maven shade plugin. However, I am getting an error saying “EntityManagerFactory” cannot be created. The service runs perfectly if I...
View ArticleDiscard HTTP Entity with conditional directive
Hello experts, My service is using akka-http’s conditional cache directive. The Etag/Last Updated value is received from one of the downstream services along with a stream for response body. I’m...
View ArticleStream byte array into chunks
Hey guys, I have a quite big byte array which I want to stream, but in chunks of n bytes. I want to get it as Stream of ByteString in the end. Maybe something like Source<ByteString,NotUsed>...
View ArticleAlpakka JMS is bouncing ActiveMQ connections on temp DestinationDoesNotExist
What is the rationale behind not handling the SUBJ exception smarter (check .isTemporary() on it and based on that decide whether to ignore it or not)? What would be the best way to implement such...
View ArticleGet last element of stream on recover
Hey guys, Let’s say we have any flow and during processing, an exception occurs because of an element. Is it possible to get the element itself to handle the exception? I’m aware of flow.mapError() to...
View ArticleR2DBC vs. JDBC: What would you prefer?
Hey guys, If you want to use a relational database inside a akka streams app (Performance is important, but memory usage should not be excessive). What would you prefer? JDBC with a separate thread...
View Article