NestJS Microservices gRPC

  Рет қаралды 8,895

Jon Peppinck

Jon Peppinck

Күн бұрын

Пікірлер
@henrycodingstack6952
@henrycodingstack6952 2 ай бұрын
quick question on the api gateway you are using typescripts interfaces generate when the protoc command was run, so my question is what of instances when the api gateway and the microservices are on different environment or machine. how do you assess the types generate on the microservices ?
@JonPeppinck
@JonPeppinck 2 ай бұрын
This is a concern I address in the NestJS RabbitMQ playlist. This gRPC is rather simple. However, it is likely you will want a shared library which gets bundled into each microservice. This is typically quite lightweight, perhaps auth related interfaces and helper functions.
@miguecast
@miguecast Жыл бұрын
Hey, great tutorial!!! Thank you! 🎉🎉
@JonPeppinck
@JonPeppinck Жыл бұрын
Thanks so much!
@MinhHiepLe-x6m
@MinhHiepLe-x6m 7 ай бұрын
I want to build api gateway for my side project. Do you think grpc is a greate choice to gateway communicate with other service (replace rest api) ?
@esmaeelbabaee5646
@esmaeelbabaee5646 11 ай бұрын
Thank you Mr Jon, Very well.
@JonPeppinck
@JonPeppinck 11 ай бұрын
Thanks so much!
@dimwel
@dimwel 26 күн бұрын
very interesting topic, but the project not start on windows... [Nest] 17428 - 12/06/2024, 1:31:41 PM ERROR [ClientProxy] ENOENT: no such file or directory, open 'C:\webdev est_tmp estjs-grpc\dist\apps\todo.proto' Error: The invalid .proto definition (file at "C:\webdev est_tmp estjs-grpc\dist\apps\todo.proto" not found)
@dimwel
@dimwel 26 күн бұрын
ok i tried to figure it out when i first run comand 'npm run build api' , then 'npm run build todo' and after that 'npm run start api' , and in separate terminal 'npm run start todo' its working without errors and in dist/apps/api and in dist/apps/todo i have the same file todo.proto
@dimwel
@dimwel 26 күн бұрын
oh ok, so i just run 'npm run start:dev api', and in separate terminal 'npm run start:dev todo' its working fine without errors
@regilearn2138
@regilearn2138 Жыл бұрын
would like do request a video on how to do microservices project in MERN stack
@JonPeppinck
@JonPeppinck Жыл бұрын
Hi Regilearn, I have two playlists you may be interested in. The first is the Facebook Messenger clone which is created with NestJS Microservices and react native. The second is a Amazon clone / e-commerce shop which uses NestJS and react.
@regilearn2138
@regilearn2138 Жыл бұрын
appreciate your reply,I am looking something next,js or react project MERN stack not NEST js@@JonPeppinck
@vsagarprasad6527
@vsagarprasad6527 7 ай бұрын
protoc --plugin=protoc-gen-ts_proto=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./ --ts_proto_opt=nestJs=true ./proto/sample.proto this command is giving error: --ts_proto_out: protoc-gen-ts_proto: %1 is not a valid Win32 application.
@AmaarHassan-lb7vv
@AmaarHassan-lb7vv 5 ай бұрын
Firslty, make sure you have downloeded the correct version as per your OS. E.g. it may be that you are using 32 bit on a 64 bit S or vice versa. Secondly, make sure that the env variables correctly shows the path to where the protobuff was downloaded Thirdly, try making the following change sin the command. Use Absolute path for the node_modules reference i.e. with Directory name etc. Then add .cmd at the end i.e. protoc-gen-ts_proto.cmd
@dimwel
@dimwel 26 күн бұрын
protoc --plugin=protoc-gen-ts_proto="C:\path\to\your\project\folder ode_modules\.bin\protoc-gen- ts_proto.cmd" --ts_proto_out=./ --ts_proto_opt=nestJs=true ./proto/yourfile.proto
NestJS gRPC Microservices Tutorial
55:04
Michael Guay
Рет қаралды 42 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Learn NestJS Microservices in 20 Minutes
20:34
Tech Vision
Рет қаралды 23 М.
gRPC Crash Course - Modes, Examples, Pros & Cons and more
1:19:38
Hussein Nasser
Рет қаралды 239 М.
Angular Getting Started (Tailwind + Daisy)
41:12
Artesgo
Рет қаралды 89
The Right way to write Nest.js & Typescript clean-code - SOLID
17:55
NestJS Kubernetes MiniKube
52:08
Jon Peppinck
Рет қаралды 1,4 М.
HANDS-ON WORKSHOP | Cloud Security Forensics & Incident Response: Aviata Chapter 9
1:19:42
Angular Getting Started (with NX)
37:35
Artesgo
Рет қаралды 162
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 92 М.
Nest.js | Middleware, Pipes & Interceptors Explained By Example
33:39
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН