All Courses

Backend Master Class [Golang + Postgres + Kubernetes + gRPC]

Backend Master Class [Golang + Postgres + Kubernetes + gRPC]
Backend Master Class [Golang + Postgres + Kubernetes + gRPC]

Backend Master Class [Golang + Postgres + Kubernetes + gRPC]

Learn about backend web development: Golang, Postgres, Redis, Gin, gRPC, Docker, Kubernetes, AWS, CI/CD.

What you’ll learn

Backend Master Class [Golang + Postgres + Kubernetes + gRPC]

  • Design database schema using DBML and automatically generate SQL code from it.
  • Deeply understand the DB isolation levels, transactions, and how to avoid deadlock.
  • Automatically generate Golang code to interact with the database
  • Develop a RESTful backend web service using the Gin framework
  • Secure the APIs with user authentication, JWT, and PASETO
  • Write a more robust test set with high coverage using interfaces and mocking
  • Build a minimal Docker image for deployment and use Docker-compose for development
  • Set up GitHub Action to automatically build and deploy the app to the AWS Kubernetes cluster
  • Register a domain and config Kubernetes ingress to route traffic to the web service
  • Enable automatic issue & renew TLS certificate for the domain with Let’s Encrypt
  • Take your web service to the next level with gRPC and gRPC gateway
  • Run background workers to process tasks asynchronously with Redis and Asynq

Requirements

  • Only essential programming skill is needed.

Description

In this course, you will learn step-by-step how to design, develop and deploy a backend web service from scratch. I believe the best way to learn to program is to build an application. Therefore, throughout the course, you will learn how to make a backend web service for a simple bank.

It will provide APIs for the frontend to do the following things:

  • Create and manage bank accounts.
  • Record all balance changes to each of the funds.
  • Perform a money transfer between 2 accounts.

The programming language to develop the service is Golang, but the course is not just about coding in Go. You will learn a lot of different topics regarding backend web development.

They are presented in 5 sections:

  1. In the 1st section, you will learn how to design the database, generate codes to talk to the DB consistently and reliably using transactions, understand the DB isolation levels, and use it correctly in production. Besides the database, you will also learn how to use Docker for local development, use Git to manage your codes, and use GitHub Action to run unit tests automatically.
  2. In the 2nd section, you will learn how to build a set of RESTful HTTP APIs using Gin – one of the most popular Golang frameworks for building web services. This includes loading app configs, mocking DB for more robust unit tests, handling errors, authenticating users, and securing the APIs with JWT and PASETO access tokens.
  3. In the 3rd section, you will learn how to build your app with Docker and deploy it to a production Kubernetes cluster on AWS. The lectures are very detailed with a step-by-step guide, from how to make a minimal docker image, set up a free-tier AWS account, create a production database, store and retrieve production secrets, create a Kubernetes cluster with EKS, use GitHub Action to automatically build and deploy the image to the EKS cluster, buy a domain name and route the traffics to the service, secure the connection with HTTPS and auto-renew TLS certificate from Let’s Encrypt.
  4. In the 4th section, we will discuss several advanced backend topics such as managing user sessions, building gRPC APIs, using gRPC gateway to serve both gRPC and HTTP requests at the same time, embedding Swagger documentation as part of the backend service, partially updating a record using optional parameters, and writing structured logger HTTP middlewares and gRPC interceptors.
  5. Then the 5th section will introduce you to asynchronous processing in Golang using background workers and Redis as its message queue and how to gracefully shut down the server to protect your processing resources. As this part is still a work in progress, we will keep making and uploading new videos about new topics in the future, such as: sending emails, gracefully shutting down servers, CORS, bulk inserts, etc. So please come back here to check them out from time to time.

This course is designed with many details so everyone, even those with little programming experience, can understand and do it themselves. I firmly believe that after this period, you will be able to work more confidently and effectively on your projects.

Who this course is for:

  • Anyone who wants to learn about backend web service development using Golang, Postgres, Docker & Kubernetes
  • The course is designed so that even a beginner with fundamental programming skills can understand
  • But I’m sure even developers with more experienced (intermediate level) can still learn something new

Backend Master Class [Golang + Postgres + Kubernetes + gRPC]

Building Web APIs with gRPC – The Complete Guide

Get Course Now



Categories



Categories






Categories