-
Notifications
You must be signed in to change notification settings - Fork 68
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
Unify the HTTP Apis #673
Comments
I hope there is a new standard API to unite common network operations, like Spring ServerExchange(adapt for different protocols, Http, WebSocket, RSocket, gRPC, etc) and DataBuffer(similar to ByteBuffer and Netty ByteBuf), use reactive/async by default. Publisher<ServerRequest> request = exchange.getRequest();
Publisher<ServerResponse> request = exchange.getResponse(); Switch to blocking/sync by a simple method. ServerRequest request = exchange.getRequest().toBlocking(an optional timeout);
ServerResponse request = exchange.getResponse().toBlocking(); (also create a client like this) For Jakarta EE 11, we can consider virtual thread and construct concurrency from the scratch. And refactor the current Servlet, Rest spec, and also requires a context propagate(support sync and async automatically, recognized by all specs, esp CDI, EL, etc) to pass request state through different contexts without explicit copy etc. |
Maybe define a new specification, and refactor Rest and Servlet/Pages/Faces to use it as base. |
@edburns Why we need Azure to manage jakarta issues, https://dev.azure.com/jakarta-ee-azdo/jakarta-ee-azdo ? |
Helidon4 web server is rewritten from scratched, and embraces VT. The new Http Apis can be inspired from the existing work. |
Jakarta EE 10 has two competing APIs for HTTP handling; one provided by Servlet, the other by REST.
This is highly undesirable. Both users and other vendors need to learn / support two largely distinct APIs.
AB#51
The text was updated successfully, but these errors were encountered: