Learn how to get Free YouTube subscribers, views and likes
Get Free YouTube Subscribers, Views and Likes

Validating Protocol Buffers in Golang gRPC Tutorial

Follow
Mario Carrion

Welcome to this gRPC video using Golang, part of the series about API Technologies in System Design. In this tutorial episode I share with you how to implement Protocol Buffers validation using a plugin called protovalidate that uses Common Expression Language (CEL) to define the rules that apply to your messages.

== Relevant links

■ Example Code: https://github.com/MarioCarrion/grpc...
■ Tutorial: System Design using gRPC with Golang:    • Tutorial (Go/Golang): System Design u...  
■ Learning Golang: Context package: Cancellations, Deadlines and Requestscoped values:    • Learning Golang: Context package: Can...  
■ Software Architecture and System Design in Go/Golang:    • Software Architecture and System Desi...  

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

== Connect with me!

■   / mariocarrion  
■   / mariocarrion  
■   / mario.carrion  

00:00 Validating Protocol Buffers in Golang gRPC Tutorial
00:07 Use Common Expression Language with protovalidate to validate Protocol Buffers
00:55 Update buf.yaml to enable protovalidate
01:45 Update buf.gen.yaml to enable protovalidate
02:28 Update Protocol Buffers to enable protovalidate and CEL
04:05 Generate code for Golang using protovalidate as the validator
06:54 Conclusion about Validating Protocol Buffers in Golang gRPC Tutorial

=== Who am I?

Hello ! My name is Mario, and I am a Handson Software Architect and Lead Backend Engineer with decades of professional experience building all kinds of software, such as onpremise Automation Systems, Linux Accessibility Desktop Applications, Cloud Governance and Compliance Systems, and Distributed Cloudbased Advertising Systems.

The content I produce includes what I've learned while working for small startups and large companies and the processes I've followed for successfully delivering complex enterprise systems from start to end.

Subscribe if you like Software Development, Software Architecture, and Systems Design, and of course, Go!

Keep it up. Don't give up!

#golang #grpc #systemdesign

=== Follow us on Instagram for our family adventures

■   / ruby_carrion  

=== Our affiliate links below

■ Technical/Nontechnical Books found on Amazon: https://www.amazon.com/shop/rubycarri...
■ Amazon Storefront: https://www.amazon.com/shop/rubycarrion
■ Shop LTK page: https://www.shopltk.com/explore/RubyC...

DISCLAIMER: Some of the links shared in the description are affiliate links. As a member of these affiliate programs, I earn a small commission from your purchases at no additional cost. I appreciate your support!

posted by klampotisxu