How to create grpc microservice project and separate server side and client side?
See original GitHub issueI’m submitting a…
[ ] Regression
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
I saw there’s an example in nestjs sample
folder, but it creates a grpc
microservice project but still uses HTTP request to access.
Expected behavior
I want to create two projects: one is grpc
microservice project as server side, another project is a normal nestjs project but with grpc
client in it and should connect to the server side. In this way I can deploy the server side separately and it won’t affect the client side deployment. This is a common way especially I have many microservices as servers and just one client as gateway or BFF(backend for frontend) to connect with them.
I didn’t find any document or articles talk about this architecture. So it would be nice if you can share one example or article about this.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
Nest version: v5.0.0
For Tooling issues:
- Node version: v9.2
- Platform: Mac
Others:
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
gRPC - A Modern Framework for Microservices Communication
Generate the server and client side stubs from the .proto file. Implement the server in one of the supported languages. Implement the client ......
Read more >Learn to Build Production-Grade Microservices with gRPC ...
The main power of this framework comes from being able to generate server and client stubs (an object on the client side that...
Read more >gRPC Client & Server Microservices Implementation Using ...
USE HEADPHONES FOR BETTER SOUNDThis video is hands-on implementation of gRPC client and server using spring boot, also all four service ...
Read more >gRPC for microservices communication - Techdozo
To build the project and generate client and server stubs, run the command gradlew clean build . You can start the gRPC server...
Read more >Using gRPC in Microservices for Building a high-performance ...
Both the client and server take advantage of the built-in gRPC generated code from the .NET Core SDK. Client-side stubs provide the plumbing...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@AntoineMaitre https://github.com/chj-damon/nestjs-grpc-server https://github.com/chj-damon/nestjs-grpc-client
you can contact me if you have any questions about them.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.