-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Write RFC for gRPC transport #582
Comments
Short Answer: Both Long Answer: I want to contribute by saying that most of the times when extending the framework to build something on top, I usually need everything to be dynamic. I would like to be able to dynamically create (When possible like in Models) or sometimes simply load other components not only protos, but also repositories, sequences and maybe just maybe controllers, this last one is not a must, but it might be required in a future. I -as a platform developer- would like to be able to use the LoopBack Core to dynamically build and load entire Apps. This way if I create some sort of extension/component that provides an interface, like a client interface, it might be able to build and load a gRPC API from a client application without even touching the backend, not even needing to restart the server. Does that make sense? I hope so, I understand that most of the times I can use bindings, I just want to make sure these can be binded not only during boot time but in runtime. This is very important because it was a downside on previous versions of LoopBack, If I can load and unload protos (or other components) on the fly, there should be no need to restart the server. I hope I'm not adding an insane request here. Cheers |
Start only grpc server: app.start({
grpc: true
});
|
Interesting project for working with proto files in JS -> https://github.com/dcodeIO/ProtoBuf.js/#usage-with-typescript . Has TypeScript support. What do you think about it @jonathan-casarrubias @bajtos @raymondfeng ? |
@VMois that looks promising, I'm taking a look... also I'm starting playing around right now, I want to setup an environment to look and feel the new loopback, I think that protobuf.js is really promising. Also, once I have an environment running, I'll try to share some diagrams from ideas I might have, before we actually go and put code in there, I think we all want to make sure we take the right choices. So, I'm still thinking the best way to interface the gRPC to App Developers. |
Closing this issue as no longer relevant, the work on gRPC is already in progress in https://github.com/strongloop/loopback4-extension-grpc |
Write a RFC (request for comment) document describing our proposed design for gRPC transport.
Acceptance criteria
The document should describe the intended gRPC implementation from the point of view of app developers (people building applications using gRPC transport), extension developers (people that want to contribute e.g. custom authorization/authentication sequence action for gRPC) and core developers (people contributing changes to loopback-next and the gRPC extension).
@api
and@get
decorators for REST.proto
and.ts
files and keep a single source of truthapp.start
Additional information
core
to a standalone package needs to address some of the challenges faced by gRPC too, we should stay consistent: Migrate rest functionality from core #576The text was updated successfully, but these errors were encountered: