Skip to content
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

Protobuf codec support #147

Open
Tracked by #610
vietj opened this issue Sep 29, 2023 · 1 comment
Open
Tracked by #610

Protobuf codec support #147

vietj opened this issue Sep 29, 2023 · 1 comment
Milestone

Comments

@vietj
Copy link
Contributor

vietj commented Sep 29, 2023

In Vert.x 5 we want to support service proxies invocation to be encoded/decoded from/to protobuf as an alternative to JSON.

  • we need to distinguish two cases
    • a service method has a single argument
      • is this argument a data object ? or is it a basic/json type ?
      • the only argument is sent through the event-bus and the codec
    • a service methods has more than one argument
      • we need to wrap those arguments with an argument list
@vietj vietj added this to the 5.0.0 milestone Sep 29, 2023
@rookiezn
Copy link

While supporting Protobuf codec, is it possible to support Protobuf generated class (extends com.google.protobuf.GeneratedMessageV3) as service method's arguments and return value?

My case is, there are some data structure defined by Protobuf outside Vert.x app. The app needs to parse and deal with those objects, my current workaround is converting those Protobuf objects to jsons and cooperate with service proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants