-
Notifications
You must be signed in to change notification settings - Fork 2
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
GRPC API #6
Comments
Thanks for your proposition. Question: how easier would it be than the http way? Actually I would prefer some help with the client request libraries (libs to manage requests with transparent renew of the access tokens and request retries, like the js one). I plan to release this js lib separatly and make some for Dart and Python first. A grpc api would need to be maintained on the long term if we adopt it
Well I prefer maintaining some Flutter code as well than using the js/css/html combo. But actually I think that Flutter web is not mature enough, and the rendering is not very classic and less efficient for an admin interface on a computer. It could be interesting to make a Flutter web app to have the admin interface on the phone, I did not bother to make it responsive, but is it really useful at this stage? |
heres my own opinion: Here is how i load up the man cmd to support both serving grpc and grpc.web AND flutter web, without any envoy needed
And to load up the other grpc Services into the Server its easy: All routing, params on a request, etc etc are all handled 100% by the proto like here: I have not added much middleware except logging: https://github.com/getcouragenow/packages/blob/master/mod-chat/server/pkg/service/server.go#L19 https://opencensus.io/integrations/redis/go/ https://opencensus.io/integrations/sql/go_sql/ https://opencensus.io/integrations/mongodb/go_driver/ https://opencensus.io/integrations/mongodb/mongostatusd/ About Flutter |
Oh and code generation of the Dart and golang code works fine. |
Hi @joe-getcouragenow I think gRPC is very nice when the user is used with gRPC. Quiq is designed to be maintained in the long term. |
Yes. The same flutter grpc code works in web, desktop and mobile. Its pretty cool.
Its only this to install:
then script to gen the code like: protoc ${PROTO_SOURCE_DIR}/${PROTO_SOURCE_FILE} --go-grpc_out=proto --go_out=proto
Yes, because we are building something similar already in our project, and i was planning to integrate into it. The only problem for me is your using relying on an external DB here: https://github.com/synw/quid/blob/master/quidlib/server/db/db.go I would need to add an adapter for embedded DB.like Badger. These are both badger based for example. |
Would you accept a GRPC API ?
I need to access quid from various languages and so GPRC makes that easy from flutter, golang and rust.
The existing API can live along side a GRPC, so it wont break the current node based admin gui.
I was actually thinking of making a Admin GUI using flutter web, just easier to manage and extend i find. I guess you however hoe vuejs for a reason and so dont want a PR for this ?
anyway, let me know...
The text was updated successfully, but these errors were encountered: