Re:Write Fast Apps Using Async Python 3.6 and Redis
by zzzeek on Thursday April 27, 2017 @09:43PM
(#14216315)
That's a client streaming optimization, not related to the subject at hand which is non-blocking network IO. Assume the service returns a JSON structure. It won't get to the end any faster.
[ Parent
| on HN ]
Re:Write Fast Apps Using Async Python 3.6 and Redis
by est on Thursday April 27, 2017 @10:08PM
(#14216409)
There must exists a module like `ijson` which could incrementally generate JSON.
Re:Write Fast Apps Using Async Python 3.6 and Redis
by makmanalp on Friday April 28, 2017 @01:08AM
(#14216987)
I went down this rabbithole once, and turns out you /can/ do something like this, having everything streaming all the way from the database to python to the web server to the client. The problem then was that even after all that effort, whatever javascript usually was processing that in a non-streaming way.
Then I found this http://oboejs.com/ and it was even more work, and I gave up. In the end it required rethinking everything and battling against a whole set of tools and libraries that just didn't think that way.