-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible / exists an example for chunked responses in Spray / Akka HTTP? #31
Comments
I agree that support for streams would be useful. Slick 3.0.0 may not be the best example as its operations return |
It can also return a Publisher for Akka Streams => |
I'm wondering too whether this is supported. The word |
Yeah I would like to figure out how to support a Source[T: Pickleable] in my apis. |
We would have to implement something like protobuffers (grpc) for that I guess |
I can pickle everything to byte arrays using boopickle. But trying to define a pickler for a Source[Bytestring] is where I got hung up I think. |
Yeah, the "default" abstractions around Autowire has the following requirements:
uPickle clearly doesn't support binary data well by default (tho you could pickle binary data into base64 if you wish, at a 30% data-size penalty) and BooPickle seems not to support streaming stuff by default. But if you look at the specification, presumably you can't efficiently collapse a
That seems like something that should work, even without needing any changes to Autowire itself. You'd just need to choose a different data-structure for You could still use |
Discussions about marshalling streams in
The above idea is more generic because it proposes marshalling the |
It uses
It has the concept of It ( Then, it compiles proto code like this
to this
which then one can override to this
@lihaoyi - thoughts on how welcome a design inspired from this would be in Wish Also looking at https://github.com/cakesolutions/kafka-wire for inspiration. |
is there a way (and or an example?) to stream a result through the autowire router? (for example with Slick 3.0.0 or any other reactive stream)
The text was updated successfully, but these errors were encountered: