Building a gRPC Service in Golang: Unary RPC (Tutorial)

Опубликовано: 28 Октябрь 2024
на канале: Mario Carrion
4,171
88

Welcome to this gRPC video using Golang, part of the series about API Technologies in System Design. In this episode I share with you how to implement a gPRC Service, specifically a Unary RPC.

== What is gRPC?

gPRC is a modern, open source remote procedure call framework that can run anywhere. It enables client and server applications to communicate transparently, and makes it easier to build connected systems.

It typically uses Protocol Buffers to describe both the service interface and the structure of the payload messages.

== Service kinds in gRPC

There are four kinds of service methods:

■ Unary RPC:    • Building a gRPC Service in Golang: Un...  
■ Server Streaming RPC:    • Building a gRPC Service in Golang: Se...  
■ Client Streaming RPC:    • Building a gRPC Service in Golang: Cl...  
■ Bidirectional Streaming RPC:    • Building a gRPC Service in Golang: Bi...  

== Relevant links

■ Tutorial: System Design using gRPC with Golang:    • Tutorial (Go/Golang): System Design u...  
■ Software Architecture and System Design in Go/Golang:    • Software Architecture and System Desi...  
■ Learning Golang: Interface Types - Part 1:    • Learning Golang: Interface Types - Pa...  
■ Learning Golang: Interface Types - Part 2:    • Learning Golang: Interface Types - Pa...  
■ Example code: https://github.com/MarioCarrion/grpc-...

== All Go/Golang Playlists

■ Building Microservices in Go/Golang:    • Building Microservices in Golang/Go  
■ Go/Golang Tools and Packages:    • Golang/Go Tools and Packages  
■ Learning Concurrency Patterns in Go/Golang:    • Learning Go/Golang Concurrency Patterns  
■ Learning Go/Golang :    • Learning Go/Golang  
■ Learning Relational Databases in Go/Golang:    • Learning Go/Golang: Relational Databases  
■ Testing in Go/Golang:    • Testing in Golang/Go  

== Socials

■   / mariocarrion  
■   / mario.carrion  
■   / mariocarrion  

00:00 Introduction to gRPC
00:57 Demo Starts! Installing requirements and required configuration
02:01 Implementing gRPC Service using Protocol Buffers
13:20 Using a gRPC client to talk to the gRPC server
15:12 Conclusion about Building a gRPC Service Unary RPC

=== Who am I?

Hello👋🏼! I'm Mario, a Hands-on Software Architect and Lead Backend Engineer with more than 16 years of professional experience building all kinds of software including on-premise Industrial Automation Systems, Linux Accessibility Desktop and Browser Components as well as Distributed Advertising Microservices.

Every week I will share with you different topics I've learned while working for small startups and large companies including the processes I've followed over the years for successfully delivering complex enterprise systems from start to end.

Subscribe if you like Software Development, Software Architecture and System Design!

Keep it up. Don't give up!

#golang #grpc #systemdesign

=== Our Vlog Channel

   / rubycarrion  

=== Affiliate links

■ Amazon Shop 🛒 https://www.amazon.com/shop/rubycarrion
■ Technical/Non-technical Books - Recommended by Mario Carrion 📚 https://www.amazon.com/shop/rubycarri...

DISCLAIMER: Some of the links shared above are affiliate links. As a member of these affiliate programs, I earn a small commission from your purchases at no additional cost to you. Thank you in advance for your support!