Using gRPC in Microservices Communication with .Net 5 (Udemy.com)
Building a high-performance gRPC Inter-service Communication between backend microservices with .Net
Created by: Mehmet Ozkaya
Last updated May 2026
What you will learn
- gRPC in Microservices with .Net 5
- Working with Protocol Buffers using proto3 Language and apply google well-known types
- gRPC Method Types, RPC life cycles - Unary, Server streaming, Client streaming, Bidirectional streaming
- Develop Protocol Buffer File (protobuf file) for gRPC Contract-First API Development
- Building a high-performance gRPC Inter-service Communication with .Net 5
- Communication between backend microservices with gRPC and AspNet 5
- Background tasks with Worker Service Projects in AspNet Core 5
- Manage long running service apps with AspNet Core Worker Service template
- Consuming a scoped gRPC services in a background task with Worker Service Projects in AspNet Core 5
- Implementation of e-commerce logic with only gRPC communication - Product, ShoppingCart and Discount gRPC services
- Consuming gRPC Server Microservices from Product and ShoppingCart Worker Service in a background task
How it compares
Against the other 815 rated Udemy courses in Web Development on CourseDuck:
- Rating4.2 out of 5higher than 13% of them
- Reviews237#435 of 816 by number of reviews
- Length7.3 hoursshorter than 50% of them
- Last updatedMay 2026more recently than 85% of them
Course Description
You will learn how to Build a high-performance gRPC Inter-service Communication between backend microservices with .Net 5 and AspNet 5.
Microservices are modern distributed systems so with gRPC in ASP.NET 5, we will develop high-performance, cross-platform applications for building distributed systems and APIs. It’s an ideal choice for communication between backend microservices, internal network applications, or iot devices and services. With the release of ASP.NET 5, Microsoft has added first-class support for creating gRPC services with Asp.Net 5.
This course will led you get started building, developing and managing gRPC servers and clients on distributed microservices architecture.
Overall Architecture of Course Project
We can design that we will have 6 microservices which we are going to develop one by one.
We will use Worker Services and Asp.Net 5 Grpc Applications to build client and server gRPC components defining proto service definition contracts.
We will implement realworld e-commerce use case with only gRPC communication. We will have 3 gRPC server applications which are Product — ShoppingCart and Discount gRPC services. And we will have 2 worker services which are Product and ShoppingCart Worker Service. Worker services will be client and perform operations over the gRPC server applications. And we will secure the gRPC services with standalone Identity Server microservices with OAuth 2.0 and JWT token.
ProductGrpc Server Application
First of all, we are going to develop ProductGrpc project. This will be Asp.Net gRPC server web application and expose apis for Product Crud operations.
Product Worker Service
After that, we are going to develop Product Worker Service project for consuming ProductGrpc services. This product worker service project will be the client of ProductGrpc application and generate products and insert bulk product records into Product database by using client streaming gRPC proto services of ProductGrpc application. This operation will be in a time interval and looping as a service application.
ShoppingCartGrpc Server Application
After that, we are going to develop ShoppingCartGrpc project. This will be Asp.Net gRPC server web application and expose apis for SC and SC items operations. The grpc services will be create shopping cart and add or remove item into shopping cart.
ShoppingCart Worker Service
After that, we are going to develop ShoppingCart Worker Service project for consuming ShoppingCartGrpc services. This ShoppingCart worker service project will be the client of both ProductGrpc and ShoppingCartGrpc application. This worker service will read the products from ProductGrpc and create sc and add product items into sc by using gRPC proto services of ProductGrpc and ShoppingCartGrpc application. This operation will be in a time interval and looping as a service application.
DiscountGrpc Server Application
When adding product item into SC, it will retrieve the discount value and calculate the final price of product. This communication also will be gRPC call with SCGrpc and DiscountGrpc application.
Identity Server
Also, we are going to develop centralized standalone Authentication Server with implementing IdentityServer4 package and the name of microservice is Identity Server.
Identity Server4 is an open source framework which implements OpenId Connect and OAuth2 protocols for .Net Core.
With IdentityServer, we can provide protect our ShoppingCart gRPC services with OAuth 2.0 and JWT tokens. SC Worker will get the token before send request to ShoppingCart Grpc server application.
By the end of this course, you will have a practical understanding of how to use gRPC to implement a fast and distributed microservices systems. And Also you’ll learn how to secure protected grpc services with IdentityServer in a microservices architecture.
Is this course for you?
This course is very practical, about 90%+ of the lessons will involve you coding along with me on this project. If you are the type of person who gets the most out of learning by doing, then this course is definitely for you.
Tools you need for this course
In this course all the lessons are demonstrated using Visual Studio 2019 as a code editor. You can of course use any code editor you like and any Operating system you like as long as it's Windows or Mac.
Instructor Details
- 4.2 Rating
237 Reviews
Mehmet Ozkaya
Software Architect with 15+ years of experience designing enterprise systems at global companies. More than 225,000 learners have taken my courses, many of them through Udemy Business in the IT departments of large companies.
Focused on AI Agents, GenAI and Microservices Architectures on .NET, AWS and Azure ecosystems.
Developed agentic systems, genai and microservices repositories on GitHub and create Udemy courses from real-world applications.
Also create courses about Designing Agentic AI Software Architectures for Cloud-Native and Serverless Event-driven Microservices.
I have regularly develop on GitHub, blog on Medium.
GitHub : mehmetozkaya
More courses by Mehmet Ozkaya
Generative AI Architectures with LLM, Prompt, RAG, Vector DB (2026)
4.5 (26,705 Reviews)
Provider: Udemy
Time: 7.3h
$69.99
.NET 8 Microservices: DDD, CQRS, Vertical/Clean Architecture (2026)
4.5 (8,457 Reviews)
Provider: Udemy
Time: 28.4h
$11.99
Design Microservices Architecture with Patterns & Principles (2026)
4.5 (7,596 Reviews)
Provider: Udemy
Time: 14.8h
$12.99
Agentic AI Architectures with Patterns, Frameworks and MCP (2026)
4.6 (2,343 Reviews)
Provider: Udemy
Time: 7.5h
$10.99
Deploying .Net Microservices with K8s, AKS and Azure DevOps (2026)
4.5 (1,518 Reviews)
Provider: Udemy
Time: 10.3h
$13.99
Secure .Net Microservices with IdentityServer4 OAuth2,OpenID (2026)
4.3 (1,259 Reviews)
Provider: Udemy
Time: 5.5h
$12.99
More Web Development courses
Python Fullstack Mastery: Build Modern Web Apps with Django (2025)
5.0 (165 Reviews)
Provider: Udemy
Time: 35h
$19.99
NgRx Signal store for Angular - The missing guide (2026)
4.9 (436 Reviews)
Provider: Udemy
Time: 11.3h
$89.99
Vue 3: Create a Mobile & Desktop App (with Quasar 2 & Pinia) (2024)
4.9 (177 Reviews)
Provider: Udemy
Time: 7.6h
$79.99
Build a URL Shortener App with ASP.NET: Step by Step (2026)
4.9 (100 Reviews)
Provider: Udemy
Time: 9.6h
$10.99
The Complete Elixir and Phoenix Bootcamp (2021)
4.8 (7,773 Reviews)
Provider: Udemy
Time: 17.4h
$84.99
Reviews
By Aaron Caroltin on 2/27/2024
Hard hearing the pronunciation, i suggest using some AI voice over tool. Also, after 2 sections, becomes repetitive. Should have covered a use case for bidirectional streaming and not have offloaded it to viewers as assignment!
By Eduar Ermilson Restrepo Lucuara on 9/2/2022
Muy completo, la información es propicia al uso de este framework, que esta solucionando una gran cantidad de necesidades a nivel de manejo de activos digitales.
By Paulo Sergio de Miranda Pitte on 4/5/2022
Good course! I expected implementation with more advanced techniques, such as examples Load Balancing, Handling transient failures with gRPC recoveries, Reliable gRPC services with deadlines and cancellation.
By Qamar Ali on 2/6/2022
I like this course. I had no idea about GRPC but the way it is presented with excellent examples resolved my queries. I wish to see the same example with the container.
By Chris S. on 9/13/2021
I expected to learn more on the gPRC services, e.g. configuration, contracts, protobuf messages or versioning. Instead, there is a LOT of repetition for setting up and configuring projects (e.g. create project, configure EF etc). Nevertheless, it's a good lesson for getting started with gPRC
By Divyesh Bhartiya on 7/5/2021
It would have better if you could have added the code for assignment as well. I know it was as add on, but would have been better. Apart from this, I really enjoyed the explanation and course. All the very best and keep coming with such courses. Thanks!!!
By Gerd Bauersfeld on 5/28/2021
Because of his accent sometimes hard to understand, but the content is excellent! It is really worth to stick to the lessons event if sometime you have to figure out what he is saying but you always can see it in the code what he is doing. I am a senior developer and I learned some really good and practical things about grpc.
By Alireza Moghadamzadeh on 4/20/2021
This is a great course to learn how to use GRPC with .Net Core. solid demo covering various scenarios beside amazing explanation of the concepts. Highly recommend it.
By Peter Jokumsen on 1/23/2021
Great knowledge share, with some good tips on debugging and developing gRPC services. Would like it if some information given on publishing said services.
By Shqipdon Sylaj on 1/7/2021
This is the second course I have purchased from this professor. It was really worth buying this course, I learned a lot of new things from this course. From now on I better understand the logic of gRPC in microservice. I have no remarks, the professor is very well understood in the video and in the demonstration. I'm sure you will learn new things.
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 84 / 100












