Microservices with .NET 6 and AWS Tutorial - Part 3

preview_player
Показать описание
In this series, we're going to build a microservices architecture using .NET 6, PostgreSQL, Docker, and AWS Fargate. We'll build four separate applications from scratch in .NET, containerize them with Docker, and orchestrate them in the cloud using AWS Fargate with ECS. Each of our services will work with its own database (database-per-service), and will communicate over HTTP.

This video is sponsored by AWS.

If you're following along, it will be useful to have Docker installed on your local development environment. Additionally, having pgAdmin installed will enable you to connect to both local and RDS-hosted PostgreSQL databases we'll be creating in this series.

• 🤝 Support the Channel on Patreon! •
Patreon supporters get access to source code!

• 👋 Get in Touch! •

• 🧑🏽‍💻 Udemy Courses •

• 🕘 Timestamps
0:00 - Install Data Loader Dependencies
0:45 - Create Data Loader Models
3:53 - Configure a .NET Console App
5:12 - Data Loader Business Logic
11:08 - Run All Microservices Locally
12:23 - Bugfix: appsettings Include
13:37 - Run Data Loader
13:58 - Explore Data in pgAdmin
15:25 - Run Weather Report Microservice
17:21 - Dockerize All Microservices
22:38 - Amazon ECR Setup
27:24 - IAM User Setup
30:55 - Setup Credentials [weather-ecr-agent]
32:36 - Bugfix: credentials profile name
33:22 - Run ECR scripts for remaining Services
34:26 - Set Up ECS Cluster
36:09 - Create a New VPC
39:15 - Set up Fargate Task Definitions
44:16 - Set up Amazon RDS PostgreSQL Database
47:00 - Bugfix: Enable VPC Host names
48:00 - Explore RDS Database in pgAdmin
49:11 - Connect to RDS Database in pgAdmin
49:56 - Create a New PostgreSQL User
50:28 - Generate Idempotent Migration Scripts
51:25 - Create New Databases in RDS
51:44 - Run SQL Migration File
51:25 - Repeat SQL File Migration Process
57:00 - Complete Environment Variable Setup in ECS
58:51 - Complete the Task Definition Creation

• 📚 Topics Covered in This Series
► .NET 6
► Microservices Architecture
► AWS Fargate
► AWS ECS
► AWS Elastic Container Registry
► Docker
► PostgreSQL
► Amazon RDS
► Microservices vs Monoliths
► git
► dotnet CLI
► Service Discovery
► Synchronous vs Asynchronous Messaging
► Database per Service

#dotnet #microservices #aws #dotNETonAWS
Рекомендации по теме
Комментарии
Автор

Howdy! 👋 Note that at 31:00, the git commit hash is hiding the name of the AWS profile I used here - for reference it is [weather-ecr-agent] -- Thanks for watching!

WesDoyle
Автор

Thanks Man. I found every second of this valuable.

HitHard
Автор

44:17 Can we use the same image for postgresql that we used before in local with devlopment? if yes, Can we include that as command while we containerize a .net app? and what the risk on that? thanks 🙏🙏🌻🌻

abdussalamashuaebi
Автор

Hi, Wes when I run report, this give me a error: .
JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
Utf8JsonReader json, ExceptionResource resource, byte nextByte, ReadOnlySpan<byte> bytes)

JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
ReadStack state, JsonReaderException ex)

alpacaman
Автор

19:40 How do you get search box for regex in VS2022? I looked everywhere could not find other than Ctrl+H. This looks neat.

jeevanthapa