Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Generate from gRPC or wrap Java? #30

Open
tabdulradi opened this issue Mar 11, 2020 · 2 comments
Open

Generate from gRPC or wrap Java? #30

tabdulradi opened this issue Mar 11, 2020 · 2 comments

Comments

@tabdulradi
Copy link

hey all, thanks for the project.
I wonder if you are planning to wrap the Java client or generate code from the protobuf definition (possibly via zio-grpc)?

@tabdulradi
Copy link
Author

I've got some code trying to generate code from the protobuff, before I gave up at some point of time. here it is in case it's beneficial for anyone https://github.com/tabdulradi/zio-gcp

@mikail-khan
Copy link
Collaborator

That's a good question. The reasons for going with wrapping the underlying Java client are:

  • rapidly develop a working zio client for GCP for a project I am currently working on
  • the Java client does a fair bit of underneath which I do not want to get into at the moment (authentication, authorisation, retries, handling call backs etc...)

Having said that I do want to explore your idea more when I have some spare cycles. One of the reasons being that the Java client forces the use of POJOs. It requires this because of the way it does serialisation/deserialisation under the hood. I haven't found a way around that at the moment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants