Build an API Gateway with Envoy and use with .NET Core APIs

Опубликовано: 14 Март 2025
на канале: Les Jackson
79,657
2k

In this step by step tutorial I take you through how to set up Envoy as an API Gateway and run it in Docker Compose with two .NET Core APIs. Specifically, the 2 API Gateway use cases we’ll cover are:
• HTTP Routing
• TLS / HTTPS Termination

Level: Intermediate

📕 My Book: https://www.apress.com/gp/book/978148...
🤩 Patreon Site (Exclusive Member Benefits!):   / binarythistle  
💻 GitHub Repo: https://github.com/binarythistle/S03E...
🔗 WSL Install: https://docs.microsoft.com/en-us/wind...
🔗 Installing Docker in WSL: https://docs.docker.com/docker-for-wi...
🔗 Envoy Documentation: https://www.envoyproxy.io/docs/envoy/...
💻 Microsoft eShopOnContainers Project: https://github.com/dotnet-architectur...
🔗 Dockerize a .NET Core App : https://docs.docker.com/engine/exampl...
🔗 Envoy Reporting with Prometheus:    • Setting up Prometheus and Grafana for...  

Recommended Videos
📽️ Full API Tutorial:    • .NET Core 3.1 MVC REST API - Full Course  
📽️ Running .NET Core apps with HTTPS:    • Run ASP.NET Core 3.1 Apps in Docker w...  
📽️ Deploy .NET Core API with Docker:    • Deploy a .NET Core API with Docker (S...  

⏲️ Time Codes ⏲️

PART 1 - INTRODUCTION
2:25 Course Overview
6:00 Architecture
8:02 Demo

PART 2 - THEORY
11:00 Ingredients
11:47 What is an API Gateway?
18:10 What is Envoy?
19:47 How Envoy works?

PART 3 - API / SERVICE SETUP
20:47 API Set Up
27:54 Dockerize our APIs
30:35 Configure for HTTPS - Certificates
35:30 Configure for HTTPS - User Secrets
42:07 Docker Compose Setup

PART 4 - ENVOY HTTP ROUTING
53:38 Get started with Envoy (Default Config)
1:06:48 Run Envoy in Docker Compose
1:11:37 HTTP Routing & Envoy.yaml
1:16:12 Docker Compose Networking

PART 5 - ENVOY & HTTPS/TLS TERMINATION
1:23:27 HTTPS/TLS Termination Overview
1:26:25 Remove HTTPS Redirection (from 1 API)
1:27:14 Generate Certificates for Envoy using OpenSSL
1:33:34 Configure HTTPS/TLS Terminaiton in Envoy
1:41:06 Configure end to end HTTPS in Envoy

PART 6 - WRAP UP
1:47:05 Final Thoughts
1:48:47 Supporter Credits