# Streaming data as images/video over the web

**URL:** https://discourse.julialang.org/t/streaming-data-as-images-video-over-the-web/11690
**Category:** Web Stack
**Tags:** question
**Created:** [June 15, 2018, 8:26am UTC](https://discourse.julialang.org/t/streaming-data-as-images-video-over-the-web/11690 "2018-06-15T08:26:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)
#### Post date: [June 15, 2018, 8:26am UTC](https://discourse.julialang.org/t/streaming-data-as-images-video-over-the-web/11690/1 "2018-06-15T08:26:30Z")

</div>

Say I have a 800\*800 Matrix that is updated a few times a second, and can be represented as a raster image.

What is the simplest way of streaming that over the web?

We are looking to build a web client to explore our simulations. Using a framework like Blink that can be local or on the web seems perfect, but I’m not sure how to actually handle the image updating.

---

<div class="post-metadata">

### Author: ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)
#### Post date: [June 15, 2018, 9:38am UTC](https://discourse.julialang.org/t/streaming-data-as-images-video-over-the-web/11690/2 "2018-06-15T09:38:35Z")

</div>

For a tiny matrix like that, and only updating it a few times a second,  
and just the one of them.

I wouldn’t bother touching the julia webstack, not worth the effort.  
I’ld just be using a normal file based webserver, like nginx or Apache 2.  
And writing it to disk in a a location that that webserver serves up, e.g. (depending on your configuration) `/var/www` or `~/public-html`

---

<div class="post-metadata">

### Author: ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)
#### Post date: [June 15, 2018, 11:08am UTC](https://discourse.julialang.org/t/streaming-data-as-images-video-over-the-web/11690/3 "2018-06-15T11:08:59Z")

</div>

I will probably have to touch the webstack anyway for InteractBase… But you’re right writing to a file could be the simplest in some ways.

At higher frame-rates/larger array sizes what would you do?

Also, ultimately I would like this to “just work” as part of a generalised modelling framework - as one of the output options, so all-julia solutions that remove the need for nginx setup etc are actually better.

---

<div class="post-metadata">

### Author: ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)
#### Post date: [June 15, 2018, 11:16am UTC](https://discourse.julialang.org/t/streaming-data-as-images-video-over-the-web/11690/4 "2018-06-15T11:16:38Z")

</div>

Um well ha hard disk does at very least 80MB/s write .  
Lets halve that to just start with so 40MB/s cos it got to be read too.  
Lets half that again that for overhead.  
So 20MB/s?

Your array is about 2MB
