Hi there,
We are heavy users of akka-stream at MyCoach Pro and have been willing to use it with NATS JetStream for a while.
We’ve built a custom source stage, but are having some issues with it in production and want to fix it/rebuild it properly.
When building a custom source I’m wondering what we should do when onPull is called, and we have no message to push ? How do we indicate downstream that there are no messages at the moment, but there might be in the future.
Also, we want to wrap the API which is blocking with Future’s and are looking for guidance.
Here’s the current implementation: https://github.com/GlobalSport/akka-streams-nats/blob/develop/src/main/scala/com/mycoachsport/JetStreamSourceStage.scala
Thanks for your help
3 posts - 2 participants