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

ProtoBuffer compatibility support #1197

Open
chaokunyang opened this issue Dec 2, 2023 · 0 comments
Open

ProtoBuffer compatibility support #1197

chaokunyang opened this issue Dec 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@chaokunyang
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

ProtoBuf is used commonly. For ProtoBuf, users define the message in IDL

syntax = "proto3";

message SearchRequest {
  string query = 1;
  int32 page_number = 2;
  int32 results_per_page = 3;
}

then use the protoc to compile the schema IDL into generated data holder and serializer class.

If users want to migrate from ProtoBuf to Fury for better performance or future reference/polymorphism
support, they must define struct in every language manually. This may take some cost if there are many struct to write.

Describe the solution you'd like

Fury can implement a static schema compiler furyc, which support parsing ProtoBuf IDL, then generate fury serializer code plain data holder struct.

The furyc can be implemented by python, and use antllr4-python to parse ProtoBuf IDL grammer.

Additional context

#1017

@chaokunyang chaokunyang added the enhancement New feature or request label Dec 2, 2023
@chaokunyang chaokunyang mentioned this issue Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant