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

Migration from grpc to grpc-js #37

Closed
1 of 4 tasks
xpirt opened this issue Apr 9, 2020 · 5 comments
Closed
1 of 4 tasks

Migration from grpc to grpc-js #37

xpirt opened this issue Apr 9, 2020 · 5 comments
Labels
discussion 🌮 enhancement New feature or request

Comments

@xpirt
Copy link

xpirt commented Apr 9, 2020

I'm submitting a ...

  • bug report
  • feature request
  • question about the decisions made in the repository
  • question about how to use this project

Question

Hi there,
did you consider moving from grpc to grpc-js dependency? I think it is quite stable now to be used instead of the native dependency.

@avermeil
Copy link
Member

avermeil commented Apr 9, 2020

Hi there!

What would be the advantages of using grpc-js rather than grpc?

Based on https://github.com/grpc/grpc-node/blob/master/PACKAGE-COMPARISON.md, it looks like grpc-js doesn't support the grpc.max_send_message_length or grpc.max_receive_message_length channel arguments, which we use in this lib. I'm not sure whether that information is still up to date...

@xpirt
Copy link
Author

xpirt commented Apr 11, 2020

It seems grpc@grpc-js is now recommended instead of the native dependency by grpc authors. Mostly because of many compatibility issues on various platforms Node-based such as Electron (besides increasing considerably the size of the app).

For example, according to grpc/grpc-node#778 the native dependency has still some issues when run on non context-aware environments (because of nan dependency): grpc/grpc-node#778 (comment).

As @grpc-js is more mature, many developers (including Google with Firebase - issue: firebase/firebase-js-sdk#1783, PR: firebase/firebase-js-sdk#1804) are migrating/or have already migrated for the same issues.

@xpirt
Copy link
Author

xpirt commented Apr 13, 2020

@avermeil As for the grpc.max_send_message_length and grpc.max_receive_message_length channel arguments, they have already been approved (grpc/grpc-node#1346) and being merged as we speak.
They are coming in 0.8.0 version.

Edit: merged.

@kritzware kritzware added the enhancement New feature or request label Apr 21, 2020
@kritzware
Copy link
Contributor

This is something we'll be working on soon 👍

@kritzware
Copy link
Contributor

This is resolved now, and we recommend using google-ads-api which now supports Google Ads API v6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion 🌮 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants