richardartoul / nola

MIT License
74 stars 6 forks source link

Support streaming interfaces #48

Closed richardartoul closed 1 year ago

richardartoul commented 1 year ago

This P.R allows actors to be written using a streaming response interface. This should enable actors to be written that return very large response (say to implement a file cache) efficiently by streaming responses directly from the actor all the way through the HTTP stack. In addition, actors can "fill" the stream asynchronously so this change also effectively enables actors to process multiple requests concurrently (if they so wish) and fill their response streams asynchronously as needed.