question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to create grpc microservice project and separate server side and client side?

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
chj-damoncommented, May 31, 2018
0reactions
lock[bot]commented, Sep 24, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found