Skip to main content
CF

Backend Master Class [Golang + PostgreSQL + Kubernetes]

18h 51m 54s
English
Paid

Unlock the power of backend development with our comprehensive course. Designed in detailed steps, this course is suitable for everyone, even those with minimal programming experience. By the end of this course, you will be equipped to confidently tackle your backend projects. You will learn how to design, develop, and deploy a backend web service from scratch, with a focus on real-world applications.

Course Overview

Throughout this course, you will gain practical experience by building a backend web service for a simple bank. The course includes the following features:

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

Programming Language and Tools

We'll be using Golang to develop the service, complemented by other essential tools and technologies to enhance your learning experience. This course is divided into four main parts, each focusing on different aspects of backend development.

Part 1: Database Design and Development

In this section, you'll dive deep into database design, learn to generate consistent and reliable code for database transactions, and understand how to properly use isolation levels in production. Additional lessons cover Docker for local development, efficient code management with Git, and using Github Actions to automate unit tests.

Part 2: Building RESTful APIs

Discover how to create RESTful HTTP APIs using Gin, a popular Golang framework for web services. You'll cover app configuration, database mocking for robust testing, error handling, user authentication, and securing APIs with JWT and PASETO tokens.

Part 3: Deployment with Docker and Kubernetes

This part guides you in deploying your app to a production Kubernetes cluster on AWS. You'll learn to create minimal Docker images, set up AWS accounts, manage production databases and secrets, configure Kubernetes clusters with EKS, automate building and deployment with Github Actions, and secure your service domain with TLS certificates.

Part 4: Advanced Backend Topics

The final, ongoing segment covers advanced topics like user session management, building gRPC APIs, serving both gRPC and HTTP through a gRPC gateway, and embedding Swagger documentation into your backend service.

Embark on this learning journey to become proficient in backend development, master essential tools, and build scalable, secure web services.

About the Author: Udemy

Udemy thumbnail

Udemy is the largest open marketplace for online courses on the internet. Founded in 2010 by Eren Bali, Oktay Caglar, and Gagan Biyani and headquartered in San Francisco, the company went public on the Nasdaq in 2021 under the ticker UDMY. The platform hosts well over two hundred thousand courses across software development, IT and cloud, data science, design, business, marketing, and creative skills, taught by tens of thousands of independent instructors. Roughly seventy million learners use it worldwide, and the corporate arm — Udemy Business — supplies a curated subset of that catalog to enterprise customers.

Because Udemy is a marketplace rather than a single editorial publisher, the catalog is uneven by design. The strongest material lives in the long-form, project-based courses authored by working engineers — full-stack JavaScript, React, Node.js, Python data science, AWS, Docker and Kubernetes, mobile development with Flutter and React Native, and cloud certification preparation. The CourseFlix listing under this source is the slice of that catalog that has been mirrored here for offline-friendly viewing, organized by topic and updated as new releases land. Pricing on Udemy itself swings dramatically with the site's near-permanent sales, which is why the platform is best treated as a deep reference catalog: pick instructors with strong reviews and a track record of updating their material rather than buying on the headline price alone.

Watch Online 79 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 79 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: 1.1. Design DB schema and generate SQL code with dbdiagram.io
All Course Lessons (79)
#Lesson TitleDurationAccess
1
1.1. Design DB schema and generate SQL code with dbdiagram.io Demo
09:58
2
1.2. Setup development environment on Windows WSL2, Go, VSCode, Docker, Make, Sqlc
09:15
3
1.3. Setup development environment on MacOS Install Go and Visual Studio Code
06:19
4
1.4. Use Docker + Postgres + TablePlus to create DB schema
12:39
5
1.5. How to write & run database migration in Golang
09:52
6
1.6. Generate CRUD Golang code from SQL Compare dbsql, gorm, sqlx & sqlc
21:22
7
1.8. Write unit tests for database CRUD with random data in Golang
20:05
8
1.10. A clean way to implement database transaction in Golang
19:53
9
1.11. DB transaction lock & How to handle deadlock in Golang
28:21
10
1.12. How to avoid deadlock in DB transaction Queries order matters!
13:04
11
1.13. Deeply understand transaction isolation levels & read phenomena
29:37
12
1.14. Setup Github Actions for Golang + Postgres to run automated tests
19:27
13
2.1. Implement RESTful HTTP API in Go using Gin
25:22
14
2.2. Load config from file & environment variables in Go with Viper
09:33
15
2.3. Mock DB for testing HTTP API in Go and achieve 100% coverage
26:55
16
2.4. Implement transfer money API with a custom params validator
14:25
17
2.5. Add users table with unique & foreign key constraints in PostgreSQL
14:08
18
2.6. How to handle DB errors in Golang correctly
11:13
19
2.7. How to securely store passwords Hash password in Go with Bcrypt!
16:54
20
2.8. How to write stronger unit tests with a custom gomock matcher
12:01
21
2.9. Why PASETO is better than JWT for token-based authentication
15:25
22
2.10. How to create and verify JWT & PASETO token in Golang
23:31
23
2.11. Implement login user API that returns PASETO or JWT access token in Go
13:52
24
2.12. Implement authentication middleware and authorization rules in Golang using Gin
29:18
25
3.1. How to build a small Golang Docker image with a multistage Dockerfile
12:00
26
3.2. How to use docker network to connect 2 stand-alone containers
10:08
27
3.3. How to write docker-compose file and control service start-up orders
16:09
28
3.4. How to create a free-tier AWS account
06:45
29
3.5. Auto build & push docker image to AWS ECR with Github Actions
20:45
30
3.6. How to create a production database on AWS RDS
10:09
31
3.7. Store & retrieve production secrets with AWS secrets manager
23:32
32
3.8. Kubernetes architecture & How to create an EKS cluster on AWS
17:28
33
3.9. How to use kubectl & k9s to connect to a kubernetes cluster on AWS EKS
15:04
34
3.10. How to deploy a web app to Kubernetes cluster on AWS EKS
20:54
35
3.11. Register a domain & set up A-record using Route53
10:31
36
3.12. How to use Ingress to route traffics to different services in Kubernetes
09:51
37
3.13. Auto issue & renew TLS certificates with cert-manager and Let's Encrypt
14:26
38
3.14. Automatic deploy to Kubernetes with Github Action
14:39
39
4.1. How to manage user session with refresh token
22:56
40
4.2. Generate DB documentation page and schema SQL dump from DBML
11:10
41
4.3. Introduction to gRPC
07:48
42
4.4. Define gRPC API and generate Go code with protobuf
16:16
43
4.5. How to run a golang gRPC server and call its API
10:09
44
4.6. Implement gRPC API to create and login users in Go
13:38
45
4.7. gRPC Gateway write code once, serve both gRPC & HTTP requests
16:43
46
4.8. How to extract information from gRPC metadata
08:44
47
4.9. Automatic generate & serve swagger documentation from Go server
13:19
48
4.10. Embed static front-end files inside Golang backend server's binary
10:24
49
4.11. Validate gRPC parameters and send humanmachine friendly response
15:43
50
4.12. Run DB migrations directly inside Golang code
11:45
51
4.13. Partial update DB record with SQLC nullable arguments
18:22
52
4.14. Build gRPC update API with optional parameters
14:19
53
4.15. Add authorization to protect gRPC API
14:29
54
4.16. Write structured logs for gRPC APIs
15:19
55
4.17. How to write HTTP logger middleware in Go
10:05
56
5.1. Implement background worker with Redis task queue
19:39
57
5.2. Integrate async worker to Go web server
13:59
58
5.3. Send async tasks to Redis within a DB transaction
09:27
59
5.4. How to handle errors and print logs for Async workers
10:43
60
5.5. Some delay might be good for your async tasks
06:15
61
5.6. How to send email in Go via Gmail
15:06
62
5.7. How to skip test in Go and config test flag in vscode
03:30
63
5.8. Email verification feature design DB and send email
18:37
64
5.9. Implement email verification API in Go
16:46
65
5.10. Unit test gRPC API with mock DB & Redis
24:34
66
5.11. How to test a gRPC API that requires authentication
14:34
67
6.1. Upgrade and config sqlc with version 2 syntax
05:44
68
6.2. Switch DB driver from libpq to pgx
17:44
69
6.3. How to properly handle DB errors with pgx driver
09:36
70
6.4. Docker compose port + volume mapping
09:02
71
6.5. How to install & use binary packages in Go
04:43
72
6.6. Implement role-based access control (RBAC) in Go
14:36
73
6.7. Grant AWS EKS cluster access to Postgres and Redis using security group
14:22
74
6.8. Deploy gRPC + HTTP server to AWS EKS cluster
15:57
75
6.9. Don't lose money on AWS
03:54
76
6.10. Graceful shutdown gRPCHTTP servers and async worker
14:11
77
6.11. Go 1.22 fixed the most common for-loop trap
07:22
78
6.12. How to setup CORS policy in Go
10:06
79
6.13. Upgrade golang JWT package to the latest version (v5)
05:28
Unlock unlimited learning

Get instant access to all 78 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Books

Read Book Backend Master Class [Golang + PostgreSQL + Kubernetes]

#TitleTypeOpen
11.1. 01-presentation-backend-master-class PDF
21.4. 02-presentation-docker-postgres-table-plus PDF
31.4. trouble-shoot-root-does-not-exist PDF
41.5. 03-presentation-db-migration PDF
51.6. 04-presentation-sqlc-crud PDF
61.10. 06-presentation-db-transaction PDF
71.13. 09-presentation-transaction-isolation PDF
81.14. 10-presentation-github-action PDF
92.1. 11-presentation-gin PDF
102.2. 12-presentation-config-viper PDF
112.3. 13-presentation-db-mock PDF
122.7. 17-presentation-hash-password PDF
132.9. 19-presentation-paseto-vs-jwt PDF
142.11. 21-login-api PDF
152.12. 22-presentation-gin-auth-middleware PDF
163.1. 23-presentation-minimal-docker-image PDF
173.8. 30-presentation-kubernetes-cluster PDF
184.1. 37-presentation-session-refresh-token PDF
194.3. 39-presentation-grpc PDF
204.4. 40-presentation-grpc-protobuf PDF
214.5. 41-presentation-grpc-server-evans-client PDF
224.8. 44-grpc-metadata PDF
234.16. 52-presentation-grpc-logger PDF
245.1. 54-presentation-async-worker PDF
255.6. trouble-shoot-gmail-app-password PDF

Related courses

Frequently asked questions

What prerequisites are required to enroll in the course?
The course is designed to be accessible to individuals with minimal programming experience. It begins with the basics of setting up a development environment, including tools like Docker, Go, and VSCode, and progresses to more advanced topics. Familiarity with basic programming concepts and Git for version control would be advantageous but not mandatory.
What kind of project will I build during the course?
Participants will create a backend web service for a simple banking application. This project involves creating and managing bank accounts, recording balance changes, and performing money transfers between accounts. The course provides hands-on experience with designing databases, building RESTful APIs, and deploying services to a Kubernetes cluster.
How does this course compare to other backend development courses?
This course offers a comprehensive approach to backend development using Golang and PostgreSQL. It covers a wide range of topics from database design and RESTful API development to deployment on Kubernetes. It also integrates practical tools like Docker and GitHub Actions for continuous integration, providing a solid foundation for building production-ready applications.
Does the course cover front-end development?
No, the course focuses exclusively on backend development. While it includes lessons on embedding static front-end files inside a Golang backend server's binary, it does not cover front-end development frameworks or tools. The primary emphasis is on building and deploying a robust backend service.
Which specific tools and technologies will I learn to use?
The course utilizes a variety of tools and technologies essential for backend development. Key technologies include Golang for programming, PostgreSQL for database management, Docker for containerization, and Kubernetes for deployment. Additionally, it covers GitHub Actions for automation, AWS services for cloud deployment, and Git for version control.
What is the expected time commitment for completing the course?
The course comprises 79 lessons, with each lesson varying in length. While the exact runtime is not specified, students should expect to dedicate several hours per week to complete the lessons, assignments, and projects. The time required may vary based on individual learning speed and prior experience.
How will the skills acquired in this course benefit my career in tech?
Skills gained from this course are applicable across numerous tech roles, especially those focused on backend development. Mastery of Golang, PostgreSQL, Docker, and Kubernetes can open opportunities in software engineering, DevOps, and cloud infrastructure roles. Additionally, understanding RESTful API development and cloud deployment are valuable skills in modern software projects.