You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "MartinHH (via GitHub)" <gi...@apache.org> on 2025/03/02 09:17:11 UTC

Re: [I] Feature request: Add Flow#switchMap operator. [pekko]

MartinHH commented on issue #974:
URL: https://github.com/apache/pekko/issues/974#issuecomment-2692637693

   I used to use this operator a lot when dealing with various applications related to monitoring live data and always missed it when working with akka streams in the past. I'm currently not working on any of such projects - if I were, I'd happily submit a PR (and might as well still do that if I find the time).
   
   One thing though: from my experience (I might be biased due to the "live data" use cases I used it for), I'd strongly advocate for "Backpressures when: never." The way this operator works, only the very latest value from upstream should cause items to be emitted to downstream, so there is no sense in keeping anything but that one latest value (and the resulting substream) in the pipeline.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org