Creating your gRPC w/ Protobuf Server in Node/Typescript! (Part 2, Client Communcation)

preview_player
Показать описание
Hello viewers!

Welcome back to my channel! In part 2 we are going to be creating our client which will be communicating with our gRPC server that we created in our first video. If you haven't watch the first part I highly encourange you to do so. It lays the foundation for gRPC
Enjoy and Stick around!

Link to Part 1:

*** Link to Code ***

Links
Рекомендации по теме
Комментарии
Автор

"Get a real job: impossible" got me laughing

Great tutorial. Really enjoyed it

eazybeeilori
Автор

Man this is amazing !! I can finally understand gRPC thank you so much !!

joudawad
Автор

Hey man your videos on grpc helped me a ton doing my final year project. I managed to make a custom blockchain on grpc. subbed <3

voidemon
Автор

Thank's a lot for this great tutorial! I've created my first gRPC messaging 🙏🏻

nneozdy
Автор

haha at around 32:08 push the "chunk into the thing" - I sub and bell. Keep it up brother!

movementlegend
Автор

🎯 Key Takeaways for quick navigation:

00:00 🚀 Setting Up Client Communication
- Introduction to client-server communication in gRPC.
- Importance of watching the first part of the video for understanding gRPC basics and protocol buffers.
00:19 🎯 Client-Side Setup for gRPC
- Copying and pasting server-related code for creating the client.
- Explanation of initializing the gRPC client, loading package definitions, and setting up the connection to the server.
03:56 ⚙️ Making the First gRPC Call
- Demonstration of making the first gRPC call from the client to the server.
- Utilizing TypeScript elegance for error handling and result logging.
07:25 🔄 Implementing Server Streaming
- Introducing server streaming in gRPC and its real-life applications.
- Setting up a server streaming service to send multiple responses from the server to the client asynchronously.
17:40 🌊 Implementing Client Streaming
- Explaining client streaming in gRPC and its usefulness.
- Creating a to-do list service where the client streams multiple to-do items to the server, demonstrating the power of client-side streaming.
25:05 🔄 Client Streaming: Understanding Client Streaming in gRPC
- Client streaming allows the client to send multiple messages to the server.
- The server reads the client's messages and processes them once the client ends the stream.
- Using `call.on('data', callback)` in Node.js allows the server to handle incoming data chunks from the client.
26:55 📋 Implementing Client Streaming in Node.js
- The server sets up a callback function to handle incoming data chunks from the client using `call.on('data', callback)`.
- The server maintains a to-do list array, appending each chunk of data received from the client.
- Once the client ends the stream with `call.on('end', callback)`, the server responds with the accumulated to-do list.

Made with HARPA AI

robertcavali
Автор

well done my friend. i have a question, can i serve html files with a server using grpc?

fatihgenj
join shbcf.ru