This course covers the implementation of CQRS (Command Query Responsibility Segregation) patterns and API development using MediatR for modular communication in .NET-based applications. You’ll learn how to structure applications using CQRS, focusing on the separation of read and write operations, and explore the integration of MediatR for handling commands and queries. With real-world examples, you will see how these patterns improve scalability and modularity in your applications.



CQRS, API Development, and Module Communication
This course is part of .NET 8 Backend Bootcamp – Modulith, DDD & CQRS Specialization

Instructor: Packt - Course Instructors
Included with
Recommended experience
What you'll learn
Implement CQRS and MediatR to efficiently manage commands and queries in modular applications.
Develop modular APIs using minimal APIs, Carter, and REPR design patterns for efficient communication
Handle cross-cutting concerns like validation, logging, and exception handling within the MediatR pipeline
Optimize application performance with distributed caching strategies using Redis in modular systems
Skills you'll gain
Details to know

Add to your LinkedIn profile
May 2025
11 assignments
See how employees at top companies are mastering in-demand skills

Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate


Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review

There are 10 modules in this course
In this module, we will dive into developing application use cases with CQRS and MediatR. You will learn how to structure commands and queries separately to streamline processing, implement MediatR for command and query handling, and create abstractions that enhance modularity and clarity in your workflows.
What's included
7 videos2 readings1 assignment
In this module, we will explore how to apply CQRS and MediatR for developing catalog module use cases. You will learn how to create and organize CQRS components, including handling commands and queries for product data, and using MediatR for efficient request processing in the catalog module.
What's included
15 videos1 assignment
In this module, we will focus on building lightweight and efficient catalog API endpoints using minimal APIs with Carter. You will learn how to expose essential product operations through RESTful APIs while adhering to CQRS patterns and utilizing the REPR design pattern for optimized request handling.
What's included
18 videos1 assignment
In this module, we will explore how to manage cross-cutting concerns such as validation, exception handling, and logging in modular applications. You will learn to integrate Fluent Validation, automate validation in MediatR pipelines, and implement structured logging and global exception handling to enhance the application's reliability and maintainability.
What's included
18 videos1 assignment
In this module, we will focus on developing the basket module using vertical slice architecture and CQRS. You will learn how to design domain models for the shopping cart, structure commands and queries efficiently, and implement CQRS patterns for handling operations related to the basket module.
What's included
5 videos1 assignment
In this module, we will explore the process of setting up EF Core with PostgreSQL for the basket module. You will learn how to apply the code-first approach to create the database schema, implement migrations, and configure EF Core mappings to persist domain models into PostgreSQL efficiently.
What's included
13 videos1 assignment
In this module, we will focus on developing use cases for the basket module using CQRS and MediatR. You will learn how to implement commands and queries for basket operations, structure the folder architecture for better organization, and leverage MediatR to handle requests effectively within the application.
What's included
9 videos1 assignment
In this module, we will develop minimal API endpoints for the basket module using Carter. You will learn how to expose essential basket operations through RESTful APIs, integrate CQRS and VSA patterns, and optimize API request processing for better performance and scalability.
What's included
14 videos1 assignment
In this module, we will explore how to implement Redis as a distributed cache in the basket module. You will learn how to optimize data retrieval using the cache-aside pattern, configure Redis within the application, and manage cache invalidation for better performance and consistency.
What's included
21 videos1 assignment
In this module, we will explore how to handle synchronous communication between modules using in-process public APIs. You will learn to set up shared contracts, implement communication patterns across modules, and test the synchronization of data between different components in your application.
What's included
13 videos1 reading2 assignments
Instructor

Offered by
Why people choose Coursera for their career




Career resources
Unlock access to 10,000+ courses with a subscription
Explore roles and skills, learn more effectively with Coursera Coach, and earn recognized credentials
Advance your career with an online degree
Earn a degree from world-class universities - 100% online
Join over 3,400 global companies that choose Coursera for Business
Upskill your employees to excel in the digital economy
Frequently asked questions
Yes, you can preview the first video and view the syllabus before you enroll. You must purchase the course to access content not included in the preview.
If you decide to enroll in the course before the session start date, you will have access to all of the lecture videos and readings for the course. You’ll be able to submit assignments once the session starts.
Once you enroll and your session begins, you will have access to all videos and other resources, including reading items and the course discussion forum. You’ll be able to view and submit practice assessments, and complete required graded assignments to earn a grade and a Course Certificate.
More questions
Financial aid available,