# \#streams

**URL:** https://discuss.akka.io/tag/streams/21.md

[Latest](https://discuss.akka.io/latest.md) · [Categories](https://discuss.akka.io/categories.md) · [Tags](https://discuss.akka.io/tags.md)

---

## [Reusability of Sources in Akka Streams](https://discuss.akka.io/t/reusability-of-sources-in-akka-streams/11532)

<div class="topic-metadata">

**Author:** [@kstokoz](https://discuss.akka.io/u/kstokoz)\
**Replies:** 2\
**Last updated:** [August 4, 2025, 8:33am UTC](https://discuss.akka.io/t/reusability-of-sources-in-akka-streams/11532 "2025-08-04T08:33:36Z")

</div>

The Akka Streams docs (Basics and working with Flows • Akka Documentation) mention that Sources can be reused (i.e., materialized multiple times), but I’ve seen cases where this doesn’t work — for example: Source.fromI…

---

## [How to detect that a consumer has disconnected from a stream](https://discuss.akka.io/t/how-to-detect-that-a-consumer-has-disconnected-from-a-stream/10701)

<div class="topic-metadata">

**Author:** [@sosborn-trumid](https://discuss.akka.io/u/sosborn-trumid)\
**Replies:** 1\
**Last updated:** [April 8, 2024, 8:46pm UTC](https://discuss.akka.io/t/how-to-detect-that-a-consumer-has-disconnected-from-a-stream/10701 "2024-04-08T20:46:18Z")

</div>

Given the following val ((queue, ks), source) = Source .queue\[MyThing\](queueSize, OverflowStrategy.dropHead) .viaMat(KillSwitches.single)(Keep.both) .preMaterialize() How can I detect …

---

## [A problem with cinnamon instrumenting akka streams](https://discuss.akka.io/t/a-problem-with-cinnamon-instrumenting-akka-streams/11345)

<div class="topic-metadata">

**Author:** [@xeppaka](https://discuss.akka.io/u/xeppaka)\
**Replies:** 2\
**Last updated:** [March 18, 2025, 7:22am UTC](https://discuss.akka.io/t/a-problem-with-cinnamon-instrumenting-akka-streams/11345 "2025-03-18T07:22:50Z")

</div>

Hi, I’m using cinnamon for collecting metrics from akka streams and faced a weird behavior of the cinnamon library when RestartSource, RestartFlow or RestartSink is used. Basically the problem is that only RestartXXX ope…

---

## [Alpakka S3 Connectors For Parquet File format](https://discuss.akka.io/t/alpakka-s3-connectors-for-parquet-file-format/11003)

<div class="topic-metadata">

**Author:** [@Susmit07](https://discuss.akka.io/u/Susmit07)\
**Replies:** 0\
**Last updated:** [October 19, 2024, 10:05pm UTC](https://discuss.akka.io/t/alpakka-s3-connectors-for-parquet-file-format/11003 "2024-10-19T22:05:13Z")

</div>

Hi Team Which API to use to upload a large parquet file to S3 I tried AlpakkS3.multipartUlpoadApi but its converting the parque to ByteString Then I moved to S3AvroParquetWriter Can we use S3.multipart upload for par…

---

## [Alpakka S3 connectors for Parquet files](https://discuss.akka.io/t/alpakka-s3-connectors-for-parquet-files/10985)

<div class="topic-metadata">

**Author:** [@Susmit07](https://discuss.akka.io/u/Susmit07)\
**Replies:** 0\
**Last updated:** [October 9, 2024, 9:58pm UTC](https://discuss.akka.io/t/alpakka-s3-connectors-for-parquet-files/10985 "2024-10-09T21:58:15Z")

</div>

Hi Team We are stuck and need your help. We are reading a PARQUET file used ParquetAvro Connectors from HDFS override def streamParquetFileAsAvro(filePath: String): Source\[GenericRecord, NotUsed\] = { ugi.doAs(new P…

---

## [Custom GraphStage](https://discuss.akka.io/t/custom-graphstage/10971)

<div class="topic-metadata">

**Author:** [@bcoromina](https://discuss.akka.io/u/bcoromina)\
**Replies:** 4\
**Last updated:** [October 4, 2024, 2:12pm UTC](https://discuss.akka.io/t/custom-graphstage/10971 "2024-10-04T14:12:30Z")

</div>

Hi, I’m thinking about using a custom GraphStage like the following: case class MapAsyncErrorUnordered\[In, Out\](parallelism: Int, f: In =\> Future\[Out\]) extends GraphStage\[FanOutShape2\[In, Out, Throwable\]\] So if Futur…

---

## [Source.queue and SourceRef. How to decrease queue buffer?](https://discuss.akka.io/t/source-queue-and-sourceref-how-to-decrease-queue-buffer/10300)

<div class="topic-metadata">

**Author:** [@Valocop](https://discuss.akka.io/u/Valocop)\
**Replies:** 1\
**Last updated:** [May 9, 2023, 6:42am UTC](https://discuss.akka.io/t/source-queue-and-sourceref-how-to-decrease-queue-buffer/10300 "2023-05-09T06:42:30Z")

</div>

Hello! I want to send data from my Akka service to another via Rsocket, which supports backpressure. I have a handler where I receive actors SourceRef, merge them, and send asFlow to rsocket. The problem is the consum…

---

## [Cinnamon not reporting Streams and Persistence metrics](https://discuss.akka.io/t/cinnamon-not-reporting-streams-and-persistence-metrics/10769)

<div class="topic-metadata">

**Author:** [@MarcosRolando](https://discuss.akka.io/u/MarcosRolando)\
**Replies:** 0\
**Last updated:** [June 19, 2024, 12:43pm UTC](https://discuss.akka.io/t/cinnamon-not-reporting-streams-and-persistence-metrics/10769 "2024-06-19T12:43:19Z")

</div>

Hi! I have been using Akka for my University final project and, as part of the project, I set up the Cinnamon plugin following the docs based on the Grafana + Prometheus setup. While it works for the most part, I’m havin…

---

## [What does "StreamTcpException: The connection actor has terminated. Stopping now." mean?](https://discuss.akka.io/t/what-does-streamtcpexception-the-connection-actor-has-terminated-stopping-now-mean/10836)

<div class="topic-metadata">

**Author:** [@djjorjinho](https://discuss.akka.io/u/djjorjinho)\
**Replies:** 2\
**Last updated:** [August 2, 2024, 4:36pm UTC](https://discuss.akka.io/t/what-does-streamtcpexception-the-connection-actor-has-terminated-stopping-now-mean/10836 "2024-08-02T16:36:37Z")

</div>

Hi folks, I maintain an akka-cluster–sharding service that reads events from an sqs queue, and performs external requests to about 4 other services for validation, aggregation, etc and keeps all of that in memory and pub…

---

## [java.lang.IllegalStateException Sink.asPublisher(fanout = false) only supports one subscriber](https://discuss.akka.io/t/java-lang-illegalstateexception-sink-aspublisher-fanout-false-only-supports-one-subscriber/10789)

<div class="topic-metadata">

**Author:** [@BillOTei](https://discuss.akka.io/u/BillOTei)\
**Replies:** 5\
**Last updated:** [July 8, 2024, 7:28am UTC](https://discuss.akka.io/t/java-lang-illegalstateexception-sink-aspublisher-fanout-false-only-supports-one-subscriber/10789 "2024-07-08T07:28:09Z")

</div>

We sometimes encounter the error randomly under load. With our Play Framework REST API, we have mainly blocking db IO. The majority of the requests come through a custom body parser private val streamParser: BodyParse…

---

## [Unable to properly terminate the alpakka Kafka Plain source(autocommit) in GraphDSL Stream](https://discuss.akka.io/t/unable-to-properly-terminate-the-alpakka-kafka-plain-source-autocommit-in-graphdsl-stream/10805)

<div class="topic-metadata">

**Author:** [@shanmukh](https://discuss.akka.io/u/shanmukh)\
**Replies:** 0\
**Last updated:** [July 7, 2024, 6:39am UTC](https://discuss.akka.io/t/unable-to-properly-terminate-the-alpakka-kafka-plain-source-autocommit-in-graphdsl-stream/10805 "2024-07-07T06:39:25Z")

</div>

I have written a GraphDsl Java stream which uses an Alpakka plain source with auto-commit. The aim is to add functionality to shutdown the source and stream gracefully without loosing the consumed records Problem: Whi…

---

## [Cinnamon plugin not reporting Streams and Persistence metrics](https://discuss.akka.io/t/cinnamon-plugin-not-reporting-streams-and-persistence-metrics/10767)

<div class="topic-metadata">

**Author:** [@MarcosRolando](https://discuss.akka.io/u/MarcosRolando)\
**Replies:** 1\
**Last updated:** [June 24, 2024, 1:42pm UTC](https://discuss.akka.io/t/cinnamon-plugin-not-reporting-streams-and-persistence-metrics/10767 "2024-06-24T13:42:13Z")

</div>

Hi! I searched everywhere in the docs and on the web for this problem but I have been unable to find an answer (or even an explicit error, the most frustrating part). I set up the Cinnamon Agent using Grafana and Promet…

---

## [Source.ask with Typed Actor](https://discuss.akka.io/t/source-ask-with-typed-actor/10762)

<div class="topic-metadata">

**Author:** [@BillOTei](https://discuss.akka.io/u/BillOTei)\
**Replies:** 2\
**Last updated:** [June 13, 2024, 6:52am UTC](https://discuss.akka.io/t/source-ask-with-typed-actor/10762 "2024-06-13T06:52:16Z")

</div>

Is it possible to use a Source.ask Actors interop • Akka Documentation to interact with a Typed Actor. The main issue being the passing the reference of the actor source to the receiver. I thought about Source.actorRef …

---

## [Akka stream merge data from multiple replicas system](https://discuss.akka.io/t/akka-stream-merge-data-from-multiple-replicas-system/10666)

<div class="topic-metadata">

**Author:** [@Teex](https://discuss.akka.io/u/Teex)\
**Replies:** 2\
**Last updated:** [June 11, 2024, 12:45pm UTC](https://discuss.akka.io/t/akka-stream-merge-data-from-multiple-replicas-system/10666 "2024-06-11T12:45:00Z")

</div>

Hello everyone, I’m encountering an issue while working with Akka Stream and I’m hoping someone can assist me in resolving it. Here’s the context: I have two systems, let’s refer to them as SystemA and SystemB, both de…

---

## [Alpakka Big Query connector TimeOut Exception after 6 minutes](https://discuss.akka.io/t/alpakka-big-query-connector-timeout-exception-after-6-minutes/10736)

<div class="topic-metadata">

**Author:** [@MathivananSekar](https://discuss.akka.io/u/MathivananSekar)\
**Replies:** 1\
**Last updated:** [May 31, 2024, 9:14am UTC](https://discuss.akka.io/t/alpakka-big-query-connector-timeout-exception-after-6-minutes/10736 "2024-05-31T09:14:20Z")

</div>

0 I’m having a Akka stream application with big query as source, that queries a table. This is implemented using Akka Alpakka Big query connector. here is the code snippet for that. val timeOut = 30.minutes //QueryReq…

---

## [Backpressure with Actors](https://discuss.akka.io/t/backpressure-with-actors/10710)

<div class="topic-metadata">

**Author:** [@sosborn-trumid](https://discuss.akka.io/u/sosborn-trumid)\
**Replies:** 11\
**Last updated:** [April 25, 2024, 11:26pm UTC](https://discuss.akka.io/t/backpressure-with-actors/10710 "2024-04-25T23:26:24Z")

</div>

Hi there, I am having trouble wrapping my head around the various actorRefWithBackpressure options. Let’s say I have the following: A fast source An actor that consumes and processes that source but is somewhat slow. …

---

## [Proper Akka websocket client to receive infinite incoming stream](https://discuss.akka.io/t/proper-akka-websocket-client-to-receive-infinite-incoming-stream/10692)

<div class="topic-metadata">

**Author:** [@\_Alex](https://discuss.akka.io/u/_Alex)\
**Replies:** 5\
**Last updated:** [April 8, 2024, 8:16am UTC](https://discuss.akka.io/t/proper-akka-websocket-client-to-receive-infinite-incoming-stream/10692 "2024-04-08T08:16:47Z")

</div>

I’m trying to connect to WebSocket incoming infinite stream as described here. I see only couple of messages \[info\] ----------------------- \[info\] 2024-03-28T22:20:57.023+08:00 \[info\] TextMessage.Strict({"topic":"orderb…

---

## [Propagating a Failure upstream in Akka.Streams, to effectively restart the Source after Backoff not possible?](https://discuss.akka.io/t/propagating-a-failure-upstream-in-akka-streams-to-effectively-restart-the-source-after-backoff-not-possible/10610)

<div class="topic-metadata">

**Author:** [@Empyreans1](https://discuss.akka.io/u/Empyreans1)\
**Replies:** 5\
**Last updated:** [February 8, 2024, 10:52am UTC](https://discuss.akka.io/t/propagating-a-failure-upstream-in-akka-streams-to-effectively-restart-the-source-after-backoff-not-possible/10610 "2024-02-08T10:52:54Z")

</div>

Lets say I have a simple Graph: Source → Flow → Sink The Source is an AzureServiceBusSource. The Flow takes each message and uses the provided information to make an HTTP request to an API. When that request is success…

---

## [Akka Persistence Cassandra tag\_views skip events](https://discuss.akka.io/t/akka-persistence-cassandra-tag-views-skip-events/10590)

<div class="topic-metadata">

**Author:** [@Valocop](https://discuss.akka.io/u/Valocop)\
**Replies:** 1\
**Last updated:** [January 5, 2024, 2:26pm UTC](https://discuss.akka.io/t/akka-persistence-cassandra-tag-views-skip-events/10590 "2024-01-05T14:26:19Z")

</div>

Good day, The problem is that TagWriter didn’t save events in tag\_views table, skip 3-10 Sequence numbers, how to fix it or can you help to understand the reason for this to prevent it in the future? As I understand fr…

---

## [Dynamically attached sinks](https://discuss.akka.io/t/dynamically-attached-sinks/10555)

<div class="topic-metadata">

**Author:** [@Hivemaster](https://discuss.akka.io/u/Hivemaster)\
**Replies:** 4\
**Last updated:** [November 28, 2023, 2:37pm UTC](https://discuss.akka.io/t/dynamically-attached-sinks/10555 "2023-11-28T14:37:04Z")

</div>

Is it possible to create a source that will be partially consumed by many sinks, attached and detached at arbitrary moments? For example stream of numbers emitting every second, and first sink somehow attached and consum…

---

## [How to decide between Actors or Akka.Streams](https://discuss.akka.io/t/how-to-decide-between-actors-or-akka-streams/10477)

<div class="topic-metadata">

**Author:** [@Empyreans](https://discuss.akka.io/u/Empyreans)\
**Replies:** 2\
**Last updated:** [September 26, 2023, 7:31am UTC](https://discuss.akka.io/t/how-to-decide-between-actors-or-akka-streams/10477 "2023-09-26T07:31:26Z")

</div>

Hello, I’m new to reactive programming, the actor model and the challenges faced in concurrent systems. From my understanding, pure actors should be used when there is concurrent access to a shared state in a complex s…

---

## [Upgrade akka 2.5 to 2.6](https://discuss.akka.io/t/upgrade-akka-2-5-to-2-6/10319)

<div class="topic-metadata">

**Author:** [@yerde](https://discuss.akka.io/u/yerde)\
**Replies:** 2\
**Last updated:** [May 25, 2023, 6:19am UTC](https://discuss.akka.io/t/upgrade-akka-2-5-to-2-6/10319 "2023-05-25T06:19:33Z")

</div>

Hello! We want to upgrade akka from 2.5 to 2.6 (and then to 2.7) but to do this we also need to bump akka-persistence-cassandra as far as I understand. We are currently on akka-persistence-cassandra 0.59 but I don’t und…

---

## [Start consuming Source(s) elements before Sink pull (Archive.zip flow)](https://discuss.akka.io/t/start-consuming-source-s-elements-before-sink-pull-archive-zip-flow/10311)

<div class="topic-metadata">

**Author:** [@gael-ft](https://discuss.akka.io/u/gael-ft)\
**Replies:** 2\
**Last updated:** [May 23, 2023, 1:11pm UTC](https://discuss.akka.io/t/start-consuming-source-s-elements-before-sink-pull-archive-zip-flow/10311 "2023-05-23T13:11:11Z")

</div>

Hello, I’m using Alpakka Archive.zip flow. (As reminder, here is the signature of the Flow is Flow\[(ArchiveMetadata, Source\[ByteString, Any\]), ByteString, NotUsed\]). The flow is consuming inner sources one by one. I …

---

## [wireTap and dropped elements](https://discuss.akka.io/t/wiretap-and-dropped-elements/10291)

<div class="topic-metadata">

**Author:** [@longshorej](https://discuss.akka.io/u/longshorej)\
**Replies:** 4\
**Last updated:** [April 26, 2023, 1:19pm UTC](https://discuss.akka.io/t/wiretap-and-dropped-elements/10291 "2023-04-26T13:19:15Z")

</div>

Hi all. Can def wireTap(f: Out =\> Unit) actually drop elements in practice? It uses Sink#foreach, which will always pull for an element IIUC. I understand that the other variant (def wireTap(that: Graph\[SinkShape\[Out\], …

---

## [SFTP writing is too slow in akka streams](https://discuss.akka.io/t/sftp-writing-is-too-slow-in-akka-streams/10105)

<div class="topic-metadata">

**Author:** [@mallelightbend](https://discuss.akka.io/u/mallelightbend)\
**Replies:** 1\
**Last updated:** [March 22, 2023, 4:47pm UTC](https://discuss.akka.io/t/sftp-writing-is-too-slow-in-akka-streams/10105 "2023-03-22T16:47:57Z")

</div>

i am trying to write to an sftp location with SFTP as sink , and for an 1MB file to write from my application it is taking almost 10 minutes. how can i improve this. i tried using “maxUnconfirmedreads” to 64 . but, it …

---

## [s3.multipartUploadWithHeaders specifying checksum](https://discuss.akka.io/t/s3-multipartuploadwithheaders-specifying-checksum/9995)

<div class="topic-metadata">

**Author:** [@Eli-Golin](https://discuss.akka.io/u/Eli-Golin)\
**Replies:** 0\
**Last updated:** [September 22, 2022, 12:48pm UTC](https://discuss.akka.io/t/s3-multipartuploadwithheaders-specifying-checksum/9995 "2022-09-22T12:48:32Z")

</div>

Does the library support aws file checksum, validation? I have tried the following code: val sink = S3 .multipartUploadWithHeaders( bucket = bucket, key = dst, contentType = …

---

## [gRPC Stream Cancellation, under what conditions?](https://discuss.akka.io/t/grpc-stream-cancellation-under-what-conditions/9853)

<div class="topic-metadata">

**Author:** [@MouthySpider](https://discuss.akka.io/u/MouthySpider)\
**Replies:** 7\
**Last updated:** [July 21, 2022, 4:15pm UTC](https://discuss.akka.io/t/grpc-stream-cancellation-under-what-conditions/9853 "2022-07-21T16:15:46Z")

</div>

In an Akka streaming project we are seeing a very high volume of these error messages: Error in stage \[akka.stream.scaladsl.MergeHub$$anon$2$$anon$3\]: Upstream producer failed with exception, removing from MergeHub now …

---

## [Akka streams tcp server - send data to specific connections](https://discuss.akka.io/t/akka-streams-tcp-server-send-data-to-specific-connections/9839)

<div class="topic-metadata">

**Author:** [@tis](https://discuss.akka.io/u/tis)\
**Replies:** 0\
**Last updated:** [June 23, 2022, 10:12am UTC](https://discuss.akka.io/t/akka-streams-tcp-server-send-data-to-specific-connections/9839 "2022-06-23T10:12:01Z")

</div>

I’m trying to build a simple TCP-Server which can accept connections and data from multiple devices. On the other hand the server should be able to send data to a specified device. Building this based on actors seems pre…

---

## [Alpakka JSON Reading](https://discuss.akka.io/t/alpakka-json-reading/9835)

<div class="topic-metadata">

**Author:** [@Dip2000](https://discuss.akka.io/u/Dip2000)\
**Replies:** 2\
**Last updated:** [June 23, 2022, 7:47am UTC](https://discuss.akka.io/t/alpakka-json-reading/9835 "2022-06-23T07:47:52Z")

</div>

Hi all, I was looking around JSON reading & came across Alpakka. I thought I would give reading some JSON & printing it a go but nothing is printed in the console. The JSON is just a simple JSON string in the code. imp…

---

## [CPU usage after upgrade](https://discuss.akka.io/t/cpu-usage-after-upgrade/9813)

<div class="topic-metadata">

**Author:** [@gilh](https://discuss.akka.io/u/gilh)\
**Replies:** 0\
**Last updated:** [June 12, 2022, 11:54am UTC](https://discuss.akka.io/t/cpu-usage-after-upgrade/9813 "2022-06-12T11:54:47Z")

</div>

I recently upgraded akka from 2.5.17 to 2.6.19 and I see some increase in CPU usage. Could it be related to the upgrade in any way? We are using scala 2.12 version of akka on top of java 8. akka modules in use are akk…

[Next page](https://discuss.akka.io/tag/streams/21.md?match_all_tags=true&page=1&tags%5B%5D=streams)
