-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
RESTEasy Reactive: investigate JSON streaming #13663
Comments
Note that for the "response streaming" part this may depend on #13661 |
Great! I'm happy to take this one. Feel free to assign me. |
Great! |
Apparently Kubernetes API server (https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/) uses |
WTF is that |
One option is http://ndjson.org/ |
Just to add ndjson is the default streaming method of Spring WebFlux Multi responses |
I could start implementing a solution to support Ndjson on JaxRS endpoints if anybody can point me in the right direction. I have seen the SSE provider in JaxRS core but I think this one can be much simpler. I am still missing all the links to understand fully what is necessary to make it happen. Did a quick and dirty 10 min PoC with a custom provider but the provider receives a list of objects instead of receiving single Multi emits of course. |
Currently the JSON handling for SEE can be found in https://github.com/quarkusio/quarkus/blob/main/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PublisherResponseHandler.java |
Ah cool, I did not find that one yet hehe. That's a really good entry point, thanks! |
There are several existing competing mime types / RFCs for streaming JSON in requests/responses.
We should investigate them and possibly support one or more.
The text was updated successfully, but these errors were encountered: