I love the lane of content that you post man. I am a huge fan of using nest js and containerization, so your content has been a huge source of inspiration to learn more into things like this
Can you please start providing an architecture diagram of what you are trying to code at the beginning of the video, using Excalidraw or something? It will help viewers visualize what is actually being built.
For Windows user : npx protoc --plugin=protoc-gen-ts_proto=".\ ode_modules\\.bin\\protoc-gen-ts_proto.cmd" --ts_proto_out=./ --ts_proto_opt=nestJs=true ./proto/auth.proto
This was something that i wanted to request you for our microservices course, you created a video wow. Will you add a small section in our existing microservice course?
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. can anyone help
Can you please split this into different repos and show how you'd handle the sharing of different proto files between different projects . I think that's where the issue is.
well in that case you'd use something else lol. the point of using nestjs and this setup is that you can have everything in one place. If you're going polyrepo, best of luck not losing your mind.
Very helpful! I actually managed to finish the tutorial. Now that I'm back messing around my own personal project, I just have a quick question. Is it possible to await response from a microservice? I basically have a loading UI when a task is ongoing ( saving objects to db) and while I want it to load while awaiting the task to finish and get a response from the microservice (to use that response on the page after the loading UI), I also need the event loop to not get blocked in the process. Does microservices solve this? or would there be a better solution for this. Any reply or a direction would be greatly appreciated. Thanks!
Sounds like an optimistic response from UI (manually altering the current data displayed while waiting the response from backend), Backend shouldn’t care about this
Hey! Love your video, thanks! I came over one question during development, hope you will answer on it: by following conventions, where Data Transfer Objects can be used in application? Which layers? Or such kind of entities can be accessible through all application's layers? What is the best practice for DTOs?
how to deploy the gateway services on google cloud or azure, it must listen to the other service and when deploy, the endpoint communicate with the gateway
How to handle exception properly on the apigateway? like find one user which is already deleted, the response is 500 instead of 404. But the auth app correctly throw NotFoundException
I couldn't follow again after running the protoc command because it errored out: protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./ --ts_proto_opt=nestJs=true ./proto/auth.proto proto/auth.proto:28:1: Expected top-level statement (e.g. "message").
If you're using macOS and encounter the error 'zsh: command not found: protoc' while attempting to execute the command 'protoc --plugin=protoc-gen-ts_proto=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./ --ts_proto_opt=nestJs=true ./proto/auth.proto', you can resolve it by installing the Protocol Buffers compiler. Simply run 'brew install protobuf' assuming you have HomeBrew installed on your Mac. This will install the necessary compiler and resolve the issue.
Why are you using streams to receive users why would you not use the pagination approach? Imagine if there are thousands of rows in database will u send all of it to consumer?
how can I catch errors thrown from the auth service on the API Gateway side? I know I should use exception filters, but I've tried several ways and it still doesn't catch the errors.
somebody have the error "terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not valid" when use the command protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./ --ts_proto_opt=nestJs=true ./proto/auth.proto ?
Yes, i am also receiving this error. Can someone help us about that? Is there any compatibility issue with the version of protobuffs? I am using ProtoBuff 24.4
how do window users solve this issue for protoc compiler $ protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./--ts_proto_opt=nestjs=true ./proto/adminauth.proto --ts_proto_out: protoc-gen-ts_proto: %1 is not a valid Win32 application.
You will have to use the full path instead. For example: 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/auth.proto