Skip to content

Implement gRPC-Web protocol - #89

Merged
tsegismont merged 7 commits into
eclipse-vertx:mainfrom
tsegismont:grpc-web
Apr 5, 2024
Merged

Implement gRPC-Web protocol#89
tsegismont merged 7 commits into
eclipse-vertx:mainfrom
tsegismont:grpc-web

Conversation

@tsegismont

@tsegismont tsegismont commented Feb 21, 2024

Copy link
Copy Markdown
Member

Closes #55

Each commit can be reviewed individually.

  • Test suite
  • Implementation
  • Documentation
  • Integration test with Vert.x Web, CORS and a browser app (binary and text)
  • grpc-web interop tests and automation

@tsegismont
tsegismont marked this pull request as ready for review February 22, 2024 17:30
@vietj vietj added this to the 5.0.0 milestone Mar 5, 2024
@vietj vietj added the enhancement New feature or request label Mar 5, 2024
@tsegismont tsegismont removed the enhancement New feature or request label Mar 7, 2024
@tsegismont tsegismont removed this from the 5.0.0 milestone Mar 7, 2024
@tsegismont

Copy link
Copy Markdown
Member Author

@vietj I've removed the milestone and label, they are already set on the corresponding issue

@tsegismont
tsegismont requested a review from vietj March 7, 2024 10:45
@tsegismont

Copy link
Copy Markdown
Member Author

@vietj PTAL

These tests have been built by inspection of a TCP traffic capture between a browser and the Envoy proxy, configured as recommended by the gRPC-Web project.

More tests will be added in follow-up commits

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
Including about CORS setup in Vert.x Web.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
https://github.com/grpc/grpc-web/blob/a639b4cf2611de2b68883571787083b73cf61f5e/doc/interop-test-descriptions.md

Create gRPC-Web prereqs image from a main branch checkout: the prereqs image on Docker Hub might not always be up-to-date (confirmed by gRPC-Web maintainer).

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont

Copy link
Copy Markdown
Member Author

@vietj I've squashed commits to ease the next review

@vietj vietj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments to address

Comment thread vertx-grpc-common/src/main/java/io/vertx/grpc/common/GrpcMediaType.java Outdated
Comment thread vertx-grpc-server/src/main/java/io/vertx/grpc/server/impl/GrpcServerImpl.java Outdated
Comment thread vertx-grpc-server/src/main/java/io/vertx/grpc/server/GrpcServerOptions.java Outdated
Comment thread vertx-grpc-common/src/main/java/io/vertx/grpc/common/impl/GrpcMessageImpl.java Outdated
@tsegismont
tsegismont requested a review from vietj March 29, 2024 10:48
@tsegismont

Copy link
Copy Markdown
Member Author

@vietj PTAL

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
The browser does not expose HTTP protocol details so, even if the client and server communicate over HTTP/2, standard gRPC cannot be used and gRPC-Web is mandatory.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont
tsegismont requested a review from kureuil April 2, 2024 12:34

@vietj vietj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor things and we are good to go

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont
tsegismont requested a review from vietj April 5, 2024 15:34
@tsegismont

Copy link
Copy Markdown
Member Author

@vietj PTAL

@tsegismont
tsegismont merged commit 8456fdf into eclipse-vertx:main Apr 5, 2024
@tsegismont
tsegismont deleted the grpc-web branch April 5, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gRPC Web

3 participants