Getting Started with Microservices using Clean Architecture
summary
Builds a working movies microservice end to end using .NET Core, Docker, EF Core, Mediatr and AutoMapper, scaffolding projects for Clean Architecture: API, Application, Core, Infrastructure and wiring dependency injection, Swagger and SQL Server in a container. Implements entities, a generic repository plus a movie repository, EF DbContext with seeding, CQRS commands and queries with handlers, and controller endpoints that return seeded rows by director. Runs the container, hits a breakpoint, posts a movie and successfully retrieves it.
AI-written summary · about
chapters (23)
- 0:00Introduction and agenda
- 2:10Understanding clean design
- 3:48Architectural patterns
- 5:11Clean architecture overview
- 6:50Benefits and drawbacks
- 8:11Microservices scenario
- 9:33Movie API project setup
- 10:25Creating project structure
- 13:24Configuring project dependencies
- 16:01Defining domain entities
- 20:03Repository interfaces
- 24:07Infrastructure implementation
- 28:16Movie repository logic
- 30:31Application layer CQRS
- 33:56Command and response design
- 35:35Handler and mapper design
- 38:39Completing command handler
- 41:25Query and handler implementation
- 43:59Finalizing application layer
- 46:59API startup configuration
- 50:03Controller implementation
- 52:52Database migration setup
- 55:31Docker and final testing
related talks
29mArchitecting .NET Microservices in a Docker Ecosystem
45mBuilding a C# Application from Scratch with CleanArchitecture, CQRS and Event Sourcing
57mClean architecture with ASP.NET Core
01h 05mAPIs and Microservices in ASP.NET Core Today and Tomorrow
53mClean Architecture and How It Helps Build Microservices and Microfrontends
01h 04mNavigating microservices with .NET Core
59mClean Architecture With ASP.NET Core
01h 03mHow to build .NET Microservices
