Cademy logoCademy Marketplace

Course Images

gRPC [Golang] Master Class: Build Modern API and Microservices

gRPC [Golang] Master Class: Build Modern API and Microservices

🔥 Limited Time Offer 🔥

Get a 10% discount on your first order when you use this promo code at checkout: MAY24BAN3X

  • 30 Day Money Back Guarantee
  • Completion Certificate
  • 24/7 Technical Support

Highlights

  • On-Demand course

  • 5 hours 25 minutes

  • All levels

Description

Better than REST APIs! Build a fast and scalable HTTP/2 API for a Go microservice with gRPC and protocol buffers (protobufs)

gRPC is a new and modern framework for building scalable, modern, and fast APIs. It is leveraged by many top tech companies such as Google, Square, and Netflix and enables programmers to write microservices in any language they want while keeping the ability to easily create communications between these services. It relies on protocol buffers as the transport mechanism and the Service Definition Language. gRPC [Golang] Master Class: Build Modern APIs and Microservices is the best way to get a great overview of all the possibilities offered by gRPC with your favourite language • Learn the gRPC theory to understand how gRPC works • Compare gRPC and the REST API paradigm • Write your gRPC service definitions in .proto files • Generate server and client Code in Golang using the Gradle gRPC plugin • Implement unary, server streaming, client streaming, and the bi-directional streaming API • Practice your learning with exercises and solutions • Implement advanced concepts such as error handling, deadlines, and SSL security • Implement a full CRUD API on top of MongoDB • Get pointers to expand your learning journey and get inspired by real-world gRPC services This perfect gRPC course will help you simplify your APIs and clients. This is not for a total beginner, though; experience with Go is a must and experience with creating/maintaining APIs is a big plus to help you understand what is going on. All the code files are placed at https://github.com/PacktPublishing/-gRPC-Golang-Master-Class-Build-Modern-API-and-Microservices

What You Will Learn

• Generate Server & Client Code in Golang using the protoc gRPC plugin
• Implement unary, server streaming, client streaming, and the bi-directional streaming API
• Practice your learning with exercises and solutions
• Implement advanced concepts such as error handling, deadlines, and SSL security
• Implement a full CRUD API on top of MongoDB
• Get pointers to expand your learning journey and get inspired by real-world gRPC services.

Audience

Developers who want to understand how to write gRPC services and clients in Golang and architects who want to understand how gRPC works and the concepts behind the different types of API.

Approach

This course will teach you gRPC [Golang] and explores in depth, via hands-on lectures, all the topics you need to get started with gRPC.

Key Features

• Learn the gRPC theory to understand how gRPC works * • Compare gRPC and the REST API paradigm * • Write your gRPC service definition in .proto files

Github Repo

https://github.com/packtpublishing/-grpc-golang-master-class-build-modern-api-and-microservices

About the Author

Stéphane Maarek

Stéphane Maarek is a solutions architect, consultant, and software developer who has a particular interest in all things related to big data and analytics. He is also a bestseller instructor on Udemy for his courses on Apache Kafka, Apache NiFi, and AWS Lambda. He loves Apache Kafka and regularly contributes to the Apache Kafka project. Stéphane has also written a guest blog post that was featured on the Confluent website, the company behind Apache Kafka. He is also an AWS Certified Solutions Architect and has many years of experience with technologies such as Apache Kafka, Apache NiFi, Apache Spark, Hadoop, PostgreSQL, Tableau, Spotfire, Docker, Ansible, and more.

Course Outline

1. gRPC Course Overview

1. gRPC Introduction

gRPC Course Overview: gRPC Introduction

2. Course Objective

gRPC Course Overview: Course Objective


2. [Theory] gRPC Internals Deep Dive

1. Protocol Buffers & Language Interoperability

[Theory] gRPC Internals Deep Dive: Protocol Buffers & Language Interoperability

2. HTTP/2

[Theory] gRPC Internals Deep Dive: HTTP/2

3. 4 Types of gRPC APIs

[Theory] gRPC Internals Deep Dive: 4 Types of gRPC APIs

4. Scalability in gRPC

[Theory] gRPC Internals Deep Dive: Scalability in gRPC

5. Security in gRPC (SSL)

[Theory] gRPC Internals Deep Dive: Security in gRPC (SSL)

6. gRPC vs REST

[Theory] gRPC Internals Deep Dive: gRPC vs REST

7. Section Summary - why use gRPC

[Theory] gRPC Internals Deep Dive: Section Summary - why use gRPC


3. [Hands-On] gRPC Project Overview & Setup

1. Go Dependencies Setup

[Hands-On] gRPC Project Overview & Setup: Go Dependencies Setup

2. Code Generation Test

[Hands-On] gRPC Project Overview & Setup: Code Generation Test

3. Server Setup Boilerplate Code

[Hands-On] gRPC Project Overview & Setup: Server Setup Boilerplate Code

4. Client Setup Boilerplate Code

[Hands-On] gRPC Project Overview & Setup: Client Setup Boilerplate Code


4. [Hands-On] gRPC Unary

1. What's a Unary API?

[Hands-On] gRPC Unary: What's a Unary API?

2. Greet API Definition

[Hands-On] gRPC Unary: Grafana + Prometheus: Greet API Definition

3. Unary API Server Implementation

[Hands-On] gRPC Unary: Grafana + Prometheus: Unary API Server Implementation

4. Unary API Client Implementation

[Hands-On] gRPC Unary: Grafana + Prometheus: Unary API Client Implementation

5. [Solution] Sum API

[Hands-On] gRPC Unary: Grafana + Prometheus: [Solution] Sum API


5. [Hands-On] gRPC Server Streaming

1. What's a Server Streaming API?

[Hands-On] gRPC Server Streaming: What's a Server Streaming API?

2. GreetManyTimes API Definition

[Hands-On] gRPC Server Streaming: GreetManyTimes API Definition

3. Server Streaming API Server Implementation

[Hands-On] gRPC Server Streaming: Server Streaming API Server Implementation

4. Server Streaming API Client Implementation

[Hands-On] gRPC Server Streaming: Server Streaming API Client Implementation

5. [Solution] PrimeNumberDecomposition API

[Hands-On] gRPC Server Streaming: [Solution] PrimeNumberDecomposition API


6. [Hands-On] gRPC Client Streaming

1. What's a Client Streaming API?

[Hands-On] gRPC Client Streaming: What's a Client Streaming API?

2. LongGreet API Definition

[Hands-On] gRPC Client Streaming: LongGreet API Definition

3. Client Streaming API Server Implementation

[Hands-On] gRPC Client Streaming: Client Streaming API Server Implementation

4. Client Streaming API Client Implementation

[Hands-On] gRPC Client Streaming: Client Streaming API Client Implementation

5. [Solution] ComputeAverage API

[Hands-On] gRPC Client Streaming: [Solution] ComputeAverage API


7. [Hands-On] gRPC Bi-Directional Streaming

1. What's a Bi-Directional Streaming API?

[Hands-On] gRPC Bi-Directional Streaming: What's a Bi-Directional Streaming API?

2. GreetEveryone API Definition

[Hands-On] gRPC Bi-Directional Streaming: GreetEveryone API Definition

3. Bi-Directional Streaming API Server Implementation

[Hands-On] gRPC Bi-Directional Streaming: Bi-Directional Streaming API Server Implementation

4. Bi-Directional Streaming API Client Implementation

[Hands-On] gRPC Bi-Directional Streaming: Bi-Directional Streaming API Client Implementation

5. [Solution] FindMaximum API

[Hands-On] gRPC Bi-Directional Streaming: [Solution] FindMaximum API


8. [Hands-On] gRPC Advanced Features Deep Dive

1. [Theory] Errors in gRPC

[Hands-On] gRPC Advanced Features Deep Dive: [Theory] Errors in gRPC

2. [Hands-On] Errors implementation

[Hands-On] gRPC Advanced Features Deep Dive: [Hands-On] Errors implementation

3. [Theory] Deadlines

[Hands-On] gRPC Advanced Features Deep Dive: [Theory] Deadlines

4. [Hands-On] Deadlines

[Hands-On] gRPC Advanced Features Deep Dive: [Hands-On] Deadlines

5. [Theory] SSL Security

[Hands-On] gRPC Advanced Features Deep Dive: [Theory] SSL Security

6. [Hands-On] SSL Security

[Hands-On] gRPC Advanced Features Deep Dive: [Hands-On] SSL Security

7. [Demo] Language Interoperability

[Hands-On] gRPC Advanced Features Deep Dive: [Demo] Language Interoperability

8. gRPC Reflection & Evans CLI

[Hands-On] gRPC Advanced Features Deep Dive: gRPC Reflection & Evans CLI


9. [Hands-On] CRUD API with MongoDB

1. Install MongoDB

[Hands-On] CRUD API with MongoDB: Install MongoDB

2. Install MongoDB UI - Robo 3T

[Hands-On] CRUD API with MongoDB: Install MongoDB UI - Robo 3T

3. Blog Service Golang Setup

[Hands-On] CRUD API with MongoDB: Blog Service Golang Setup

4. MongoDB Driver Golang Setup

[Hands-On] CRUD API with MongoDB: MongoDB Driver Golang Setup

5. CreateBlog Server

[Hands-On] CRUD API with MongoDB: CreateBlog Server

6. CreateBlog Client

[Hands-On] CRUD API with MongoDB: CreateBlog Client

7. ReadBlog Server

[Hands-On] CRUD API with MongoDB: ReadBlog Server

8. ReadBlog Client

[Hands-On] CRUD API with MongoDB: ReadBlog Client

9. UpdateBlog Server

[Hands-On] CRUD API with MongoDB: UpdateBlog Server

10. UpdateBlog Client

[Hands-On] CRUD API with MongoDB: UpdateBlog Client

11. DeleteBlog Server

[Hands-On] CRUD API with MongoDB: DeleteBlog Server

12. DeleteBlog Client

[Hands-On] CRUD API with MongoDB: DeleteBlog Client

13. ListBlog Server

[Hands-On] CRUD API with MongoDB: ListBlog Server

14. ListBlog Client

[Hands-On] CRUD API with MongoDB: ListBlog Client

15. Evans CLI test with CRUD

[Hands-On] CRUD API with MongoDB: Evans CLI test with CRUD


10. Next Steps

1. gRPC Services in the Real Word

Next Steps: gRPC Services in the Real Word

2. Congrats & Next Steps

Next Steps: Congrats & Next Steps

Course Content

  1. gRPC [Golang] Master Class: Build Modern API and Microservices

About The Provider

Packt
Packt
Birmingham
Founded in 2004 in Birmingham, UK, Packt’s mission is to help the world put software to work in new ways, through the delivery of effective learning and i...
Read more about Packt

Tags

Reviews