Efficient Large Binary File Streaming

154 views
Skip to first unread message

kanav002

unread,
Aug 16, 2015, 9:17:38 PM8/16/15
to Django users
This is my first week using Django and version 1.8 in particular. I'm trying to figure out the best way to stream a raw, large, continuously growing binary file to a plotting function that is continuously updating the last 600 bytes of the binary file. This is primarily a client side application. I have seen many streaming snippets and the StreamingHttpResponse module but am not sure which streaming method will be optimal. I'm also not sure if streaming methods are the correct approach. Can I just read the file with Python and plot in a browser window? Thanks.

Luis Zárate

unread,
Aug 18, 2015, 11:54:23 AM8/18/15
to django...@googlegroups.com

2015-08-16 18:25 GMT-06:00 kanav002 <kana...@umn.edu>:
This is my first week using Django and version 1.8 in particular. I'm trying to figure out the best way to stream a raw, large, continuously growing binary file to a plotting function that is continuously updating the last 600 bytes of the binary file. This is primarily a client side application. I have seen many streaming snippets and the StreamingHttpResponse module but am not sure which streaming method will be optimal. I'm also not sure if streaming methods are the correct approach. Can I just read the file with Python and plot in a browser window? Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/77018f70-2568-4a80-a6d1-c928c73617ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
"La utopía sirve para caminar" Fernando Birri


kanav002

unread,
Aug 18, 2015, 8:11:15 PM8/18/15
to Django users
Yes thank you. I went over that page and decided for my real-time binary stream I would use a FLOT chart:


However, I am trying to figure out how to get the data from a large growing binary file to the FLOT chart. Should I use StreamingHttpResponse? Should I use the django-stream package. Basically I'm looking for advice from an experienced user what works well and what doesn't. Thanks.

Nick
Reply all
Reply to author
Forward
0 new messages