# Help find best approach to streaming data on raspberry pi

**URL:** https://discourse.julialang.org/t/help-find-best-approach-to-streaming-data-on-raspberry-pi/105130
**Category:** General Usage
**Created:** [October 18, 2023, 4:36pm UTC](https://discourse.julialang.org/t/help-find-best-approach-to-streaming-data-on-raspberry-pi/105130 "2023-10-18T16:36:25Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![jpsamaroo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpsamaroo/32/46804_2.png) [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)
#### Post date: [October 18, 2023, 10:55pm UTC](https://discourse.julialang.org/t/help-find-best-approach-to-streaming-data-on-raspberry-pi/105130/3 "2023-10-18T22:55:24Z")

</div>

Have you looked into [Dagger.jl](https://github.com/JuliaParallel/Dagger.jl/) at all? In terms of automatic Distributed + multithreading, that’s baked in to `Dagger.@spawn` - it’ll use any thread on any worker to run your task.

I’m not sure what you mean by “play/pause”, but if you can elaborate, maybe it’s something I can provide a solution for?

Additionally, in terms of streaming support, I have a [branch](https://github.com/JuliaParallel/Dagger.jl/tree/jps/stream2) that implements streaming support, which should automatically work across Distributed processes and multiple threads. It needs more work to be merge-ready, but the idea is solid and will probably get merged in the next 1-2 months. If this seems appealing to you, let me know and I can prioritize finishing it 😄

> [@TheLateKronos](#):
>
> Is there any reason why this would be a bad approach?

For one thing, this isn’t thread-safe. For another, it doesn’t work across multiple processes, since `bla` only exists on one process. Dagger’s streaming branch support early termination of streaming tasks from within the task or from the outside, so maybe it’s worth taking a look to see if this would work for you.

---

_[View the full topic](https://discourse.julialang.org/t/help-find-best-approach-to-streaming-data-on-raspberry-pi/105130)._
