Hands-On Go : Microservices With Protocol Buffers & gRPC

Protocol buffers (protobuf) & gRPC implementation using Go programming language (Golang) on microservice architecture

4.46 (48 reviews)
Udemy
platform
English
language
Other
category
Hands-On Go : Microservices With Protocol Buffers & gRPC
855
students
9.5 hours
content
Apr 2024
last update
$69.99
regular price

What you will learn

What is Protocol Buffers (Protobuf) and how to use it for data communication

Protocol Buffers Schema Definition : data types, list, syntax, etc

Protocol Buffers Schema Evolution

Implement Protocol Buffers with Go programming language

Implement 4 types of gRPC API using Golang : unary, server streaming, client streaming, and bi-directional

Use PostgreSQL database with gorm : Go Object Relational Mapping (ORM)

Use Hexagon Software Architecture (Port & Adapters) to build bank application on top of gRPC API with Golang

Building resilient gRPC : using timeout / deadline, retry, and circuit breaker

gRPC error handling, status codes, metadata, interceptor

gRPC - REST API gateway

Generate OpenAPI documentation for gRPC API

Why take this course?

This course is designed to help learners understand and implement Protocol Buffers (protobuf) and gRPC using the Go programming language on microservice architecture.

The course is structured in a step-by-step manner, starting with an introduction to protobuf, its style guide, and course file structure. You will learn the theory behind various aspects of protobuf such as scalar types, repeated enum comments, protobuf JSON, nested message type, package, any, oneof, map, and schema evolution.

The course also covers the implementation of gRPC and its integration with protobuf. You will learn how to manage the gRPC repository using github, gRPC status, error handling, resiliency server, timeout, retry, and circuit breaker. Additionally, the course covers the implementation of metadata server and client, server interceptor, client interceptor, and gRPC-REST gateway.

Throughout the course, you will work on various hands-on codes that involve creating a banking application using gRPC and protobuf, as well as using PostgreSQL database and Go Object Relational Mapper (ORM) to works with database. By the end of this course, you will have the skills and knowledge required to create microservices using gRPC and protobuf with the Go programming language.

Requirements (must-have):

  • Basic knowledge of the Go programming language

  • Familiarity with git commands (push, pull, pull request, merge, branch)

Tools:

  • Go programming language

  • Protocol Buffers (protobuf)

  • gRPC

  • Github

  • Visual Studio Code (or any editor you like)

The course delivered in lab-style teaching, where you are assigned with a task tobe solved. There will be a guidance for each task so you can try hands-on. If you stuck, you can jump to the full solution.

The course contains 130+ lectures, which cover the following topics:

  • Introduction to protobuf

  • Writing a protobuf (style guide)

  • Scalar types, repeated, enums, and Protobuf JSON

  • Other message types, multiple files and import messages, nested message types, and packages

  • Any, oneof, and maps

  • Reading and writing Protobuf to disk and JSON

  • Schema evolution and additional data types

  • Option, field validation, and field number effect tips

  • Introduction to gRPC and whether to use it or not

  • Managing & automating Protobuf and gRPC github repositories with github action

  • Implementing a unary server and client, server streaming, client streaming, and bidirectional streaming

  • Implementing a bank gRPC application with PostgrSQL database preparation, fetching exchange rates, and summarizing transactions

  • Handling gRPC status and errors, error handling on the client side, and resiliency techniques such as timeout, retry, and circuit breaker

  • Implementing metadata, server and client interceptors

  • gRPC-REST gateway

By the end of the course, you will have gained a thorough understanding of how to implement Protocol Buffers and gRPC using the Go programming language. You will learned how to follow Protobuf style guides, organize Protobuf file structures, and work with scalar types, repeated, enums, maps, any, oneof, and nested message types. They will also have learned how to read and write Protobuf to disk and JSON, handle schema evolution (forward / backward compatibility), and use additional data types.

Furthermore, you will have gained hands-on experience in implementing various types of gRPC services, including unary, server streaming, client streaming, and bidirectional streaming. You will also have learned how to handle gRPC status and errors, implement resiliency techniques such as timeout, retry, and circuit breaker. You will learn how to convert your gRPC API to REST API, using gRPC-REST gateway. You will also learn how to generate OpenAPI / swagger documentation for gRPC.

In other words, you will have gained practical skills and knowledge that you can apply to building robust and scalable microservices using Protocol Buffers and gRPC with the Go programming language.

Reviews

Indra
November 18, 2023
good, but too fast in explanation, maybe in the future you can improve it by giving a student time to practice
Tawabocah
July 11, 2023
Love this course, explaining in detail and structured, step-by-step informations. Especially the way it encourage me to try my own code
Tom
June 1, 2023
This is a very comprehensive course. In fact I don't think there is a gRPC course that covers even half of the aspects of protocol buffers and gRPC that this course covers. The github work flow, and even the hexagonal design pattern used through the project is very nice bonus. Highly recommend for anyone who needs a tuneup, or is looking for another angle at designing gRPC into a project. However this course is pretty complicated. If you're not familiar the hexagonal design pattern, and you're also completely new to gRPC then this course may have too much abstraction up front. I would recommend taking a primer on either topic so the course isn't too overwhelming. There are pacing issues in the coding videos where the explanation and coding are not really in sync. There's a lot of code in the project which is not explained very well. There are plenty of moments that the instructor is not explaining code and is just flashing code blocks. I feel this is because the instructor may not be comfortable in over explaining code and concepts.

Charts

Price

Hands-On Go : Microservices With Protocol Buffers & gRPC - Price chart

Rating

Hands-On Go : Microservices With Protocol Buffers & gRPC - Ratings chart

Enrollment distribution

Hands-On Go : Microservices With Protocol Buffers & gRPC - Distribution chart
5052152
udemy ID
1/1/2023
course created date
5/26/2023
course indexed date
Bot
course submited by