Beginner's Guide to Go Protocol Buffer

Beginner's Guide to Go Protocol Buffer

3h 4mBeginner2023-05-11

Authors

Martine Moses

Martine Moses

Back-End and Integration Developer

Course details

Are you looking for alternatives to REST APIs to improve internal communication between services? In this course, instructor Martine Moses shows you how to create fast APIs using the Google Protocol Buffer (protobuf) and Google Remote Procedure Call (gRPC), two of the most consistent, easy-to-use, open-source options for connecting and managing services across multiple platforms.

Explore the basics of protocol buffers and gRPCs, when to use which, how to define a protobuf, how to set up a gRPC, and more. Boost your career with in-demand skills that you can apply on your next job search, testing out your new technical know-how in the exercise challenges at the end of each section. Upon completing this course, you’ll be ready to start defining protobuf messages and services, as well as creating gRPC servers and clients in both Go and TypeScript.

Skills covered

GoSoftware ArchitectureAPIsFull-Stack Web DevelopmentGoogleWeb DevelopmentProgramming LanguagesSoftware DevelopmentOne-Off

Concepts

Introduction

  • Go protocol buffer
  • What you should know
  • GitHub Codespaces

Protocol Buffers Overview

  • What is a gRPC
  • gRPC vs. REST
  • What are protocol buffers (protobuf)
  • Protobuf vs. JSON

Defining Protocol Buffer Messages and Services

  • How to define a protobuf messages
  • How to define protobuf services and compiling
  • Challenge 1
  • Solution 1 - Part 1
  • Solution 1 - Part 2
  • Solution 1 - Part 3

gRPC Servers and Clients in Go

  • Creating a gRPC server - Go
  • Creating gRPC client - Go
  • Challenge 2
  • Solution 2 - Part 1
  • Solution 2 - Part 2
  • Solution 2 - Part 3
  • Solution 2 - Part 4

gRPC Servers and Clients in TypeScript

  • Creating a gRPC server - TypeScript
  • Creating a gRPC client - TypeScript
  • Challenge 3
  • Solution 3 - Part 1
  • Solution 3 - Part 2

Conclusion

  • Additional resources
80,000 Toman