Backend Master Class [Golang + Postgres + Kubernetes + gRPC]
Backend Master Class [Golang + Postgres + Kubernetes + gRPC], available at $99.99, has an average rating of 4.68, with 79 lectures, 2 quizzes, based on 2233 reviews, and has 39924 subscribers.
You will learn about 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 stronger 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 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 This course is ideal for individuals who are Anyone who wants to learn about backend web service development using Golang, Postgres, Docker & Kubernetes or The course is designed so that even a beginner with very basic programming skills can understand or But I'm sure even developers with more experienced (intermediate level) can still learn something new It is particularly useful for Anyone who wants to learn about backend web service development using Golang, Postgres, Docker & Kubernetes or The course is designed so that even a beginner with very basic programming skills can understand or But I'm sure even developers with more experienced (intermediate level) can still learn something new.
Enroll now: Backend Master Class [Golang + Postgres + Kubernetes + gRPC]
Summary
Title: Backend Master Class [Golang + Postgres + Kubernetes + gRPC]
Price: $99.99
Average Rating: 4.68
Number of Lectures: 79
Number of Quizzes: 2
Number of Published Lectures: 79
Number of Published Quizzes: 2
Number of Curriculum Items: 81
Number of Published Curriculum Objects: 81
Number of Practice Tests: 2
Number of Published Practice Tests: 2
Original Price: $89.99
Quality Status: approved
Status: Live
What You Will Learn
- 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 stronger 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 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
Who Should Attend
- 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 very basic programming skills can understand
- But I'm sure even developers with more experienced (intermediate level) can still learn something new
Target Audiences
- 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 very basic programming skills can understand
- But I'm sure even developers with more experienced (intermediate level) can still learn something new
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 programming is to build a real application. Therefore, throughout the course, you will learn how to build 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 accounts.
-
Perform a money transfer between 2 accounts.
The programming language we will use 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 6 sections:
-
In the 1st section, you will learn deeply about how to design the database, generate codes to talk to the DB in a consistent and reliable way using transactions, understand the DB isolation levels, and how to use it correctly in production. Besides the database, you will also learn how to use docker for local development, how to use Git to manage your codes, and how to use GitHub Action to run unit tests automatically.
-
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 everything from loading app configs, mocking DB for more robust unit tests, handling errors, authenticating users, and securing the APIs with JWT and PASETO access tokens.
-
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 build 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.
-
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.
-
Then the 5th section will introduce you to asynchronous processing in Golang using background workers and Redis as its message queue. We’ll also learn how to create and send emails to users via Gmail SMTP server. Along the way, we’ll learn more about writing unit tests for our gRPC services that might involve mocking multiple dependencies at once.
-
The final section 6th concludes the course with lectures about how to improve the stability and security of the server. We’ll keep updating dependency packages to the latest version, use Cookies to make the refresh token more secure, and learn how to gracefully shut down the server to protect the 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. So please come back here to check them out from time to time.
This course is designed with a lot of details, so that everyone, even those with very little programming experience can understand and do it by themselves. I firmly believe that after the course, you will be able to work much more confidently and effectively on your projects.
Course Curriculum
Chapter 1: Working with database [Postgres + SQLC]
Lecture 1: Design DB schema and generate SQL code with dbdiagram.io
Lecture 2: Setup development environment on Windows: WSL2, Go, VSCode, Docker, Make, Sqlc
Lecture 3: Setup development environment on MacOS: Install Go and Visual Studio Code
Lecture 4: Use Docker + Postgres + TablePlus to create DB schema
Lecture 5: How to write & run database migration in Golang
Lecture 6: Generate CRUD Golang code from SQL | Compare db/sql, gorm, sqlx & sqlc
Lecture 7: Write unit tests for database CRUD with random data in Golang
Lecture 8: A clean way to implement database transaction in Golang
Lecture 9: DB transaction lock & How to handle deadlock in Golang
Lecture 10: How to avoid deadlock in DB transaction? Queries order matters!
Lecture 11: Deeply understand transaction isolation levels & read phenomena
Lecture 12: Setup Github Actions for Golang + Postgres to run automated tests
Chapter 2: Building RESTful HTTP JSON API [Gin + JWT + PASETO]
Lecture 1: Implement RESTful HTTP API in Go using Gin
Lecture 2: Load config from file & environment variables in Go with Viper
Lecture 3: Mock DB for testing HTTP API in Go and achieve 100% coverage
Lecture 4: Implement transfer money API with a custom params validator
Lecture 5: Add users table with unique & foreign key constraints in PostgreSQL
Lecture 6: How to handle DB errors in Golang correctly
Lecture 7: How to securely store passwords? Hash password in Go with Bcrypt!
Lecture 8: How to write stronger unit tests with a custom gomock matcher
Lecture 9: Why PASETO is better than JWT for token-based authentication?
Lecture 10: How to create and verify JWT & PASETO token in Golang
Lecture 11: Implement login user API that returns PASETO or JWT access token in Go
Lecture 12: Implement authentication middleware and authorization rules in Golang using Gin
Chapter 3: Deploying the application to production [Docker + Kubernetes + AWS]
Lecture 1: How to build a small Golang Docker image with a multistage Dockerfile
Lecture 2: How to use docker network to connect 2 stand-alone containers
Lecture 3: How to write docker-compose file and control service start-up orders
Lecture 4: How to create a free-tier AWS account
Lecture 5: Auto build & push docker image to AWS ECR with Github Actions
Lecture 6: How to create a production database on AWS RDS
Lecture 7: Store & retrieve production secrets with AWS secrets manager
Lecture 8: Kubernetes architecture & How to create an EKS cluster on AWS
Lecture 9: How to use kubectl & k9s to connect to a kubernetes cluster on AWS EKS
Lecture 10: How to deploy a web app to Kubernetes cluster on AWS EKS
Lecture 11: Register a domain & set up A-record using Route53
Lecture 12: How to use Ingress to route traffics to different services in Kubernetes
Lecture 13: Auto issue & renew TLS certificates with cert-manager and Let's Encrypt
Lecture 14: Automatic deploy to Kubernetes with Github Action
Chapter 4: Advanced Backend Topics [Sessions + gRPC]
Lecture 1: How to manage user session with refresh token
Lecture 2: Generate DB documentation page and schema SQL dump from DBML
Lecture 3: Introduction to gRPC
Lecture 4: Define gRPC API and generate Go code with protobuf
Lecture 5: How to run a golang gRPC server and call its API
Lecture 6: Implement gRPC API to create and login users in Go
Lecture 7: gRPC Gateway: write code once, serve both gRPC & HTTP requests
Lecture 8: How to extract information from gRPC metadata
Lecture 9: Automatic generate & serve swagger documentation from Go server
Lecture 10: Embed static front-end files inside Golang backend server's binary
Lecture 11: Validate gRPC parameters and send human/machine friendly response
Lecture 12: Run DB migrations directly inside Golang code
Lecture 13: Partial update DB record with SQLC nullable arguments
Lecture 14: Build gRPC update API with optional parameters
Lecture 15: Add authorization to protect gRPC API
Lecture 16: Write structured logs for gRPC APIs
Lecture 17: How to write HTTP logger middleware in Go
Chapter 5: Asynchronous processing with background workers [Asynq + Redis]
Lecture 1: Implement background worker with Redis task queue
Lecture 2: Integrate async worker to Go web server
Lecture 3: Send async tasks to Redis within a DB transaction
Lecture 4: How to handle errors and print logs for Async workers
Lecture 5: Some delay might be good for your async tasks
Lecture 6: How to send email in Go via Gmail
Lecture 7: How to skip test in Go and config test flag in vscode
Lecture 8: Email verification feature: design DB and send email
Lecture 9: Implement email verification API in Go
Lecture 10: Unit test gRPC API with mock DB & Redis
Lecture 11: How to test a gRPC API that requires authentication
Chapter 6: Improve the stability and security of the server
Lecture 1: Upgrade and config sqlc with version 2 syntax
Lecture 2: Switch DB driver from lib/pq to pgx
Lecture 3: How to properly handle DB errors with pgx driver
Lecture 4: Docker compose: port + volume mapping
Lecture 5: How to install & use binary packages in Go
Lecture 6: Implement role-based access control (RBAC) in Go
Lecture 7: Grant AWS EKS cluster access to Postgres and Redis using security group
Lecture 8: Deploy gRPC + HTTP server to AWS EKS cluster
Lecture 9: Don't lose money on AWS
Lecture 10: Graceful shutdown gRPC/HTTP servers and async worker
Lecture 11: Go 1.22 fixed the most common for-loop trap
Lecture 12: Hey, it's not the end yet!
Lecture 13: What's next?
Instructors
-
TECH SCHOOL
From noob to pro
Rating Distribution
- 1 stars: 32 votes
- 2 stars: 26 votes
- 3 stars: 116 votes
- 4 stars: 505 votes
- 5 stars: 1554 votes
Frequently Asked Questions
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!
You may also like
- Top 10 Language Learning Courses to Learn in November 2024
- Top 10 Video Editing Courses to Learn in November 2024
- Top 10 Music Production Courses to Learn in November 2024
- Top 10 Animation Courses to Learn in November 2024
- Top 10 Digital Illustration Courses to Learn in November 2024
- Top 10 Renewable Energy Courses to Learn in November 2024
- Top 10 Sustainable Living Courses to Learn in November 2024
- Top 10 Ethical AI Courses to Learn in November 2024
- Top 10 Cybersecurity Fundamentals Courses to Learn in November 2024
- Top 10 Smart Home Technology Courses to Learn in November 2024
- Top 10 Holistic Health Courses to Learn in November 2024
- Top 10 Nutrition And Diet Planning Courses to Learn in November 2024
- Top 10 Yoga Instruction Courses to Learn in November 2024
- Top 10 Stress Management Courses to Learn in November 2024
- Top 10 Mindfulness Meditation Courses to Learn in November 2024
- Top 10 Life Coaching Courses to Learn in November 2024
- Top 10 Career Development Courses to Learn in November 2024
- Top 10 Relationship Building Courses to Learn in November 2024
- Top 10 Parenting Skills Courses to Learn in November 2024
- Top 10 Home Improvement Courses to Learn in November 2024