Pragmatic Microservices with C# and Azure: Build, deploy, and scale microservices efficiently to meet modern software demands
- Length: 508 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2024-05-31
- ISBN-10: 1835088295
- ISBN-13: 9781835088296
Unlock efficiency in software development by learning microservices with C# and Azure
Key Features
- Gain step-by-step project-based guidance on how to develop a full-fledged microservices application
- Gain extensive knowledge of microservices by covering essential concepts, tools, and methodologies
- Acquire skills to deploy and manage microservices on MS Azure
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description
This book introduces .NET Aspire and its features for developing microservices. It delves into defining an app model for an application’s services, using service discovery, and integrating components locally and via native cloud services with Azure. It offers practical insights and hands-on experience, exploring microservices concepts in ASP.NET Core.
You’ll learn how to develop robust services using .NET features such as minimal APIs, gRPC, and SignalR for real-time communication. The book also covers essential aspects of DevOps, testing methodologies including unit, integration, and load testing, and logging and monitoring including OpenTelemetry using tools such as Azure Log Analytics, Application Insights, Prometheus, and Grafana. You’ll understand how asynchronous communication leveraging queues and events is facilitated through Azure Event Hub and Apache. Throughout the book, you’ll not only discover the theoretical aspects but also gain practical skills by building and deploying a fully functional microservices-based application.
By the end of this book, you’ll have a deep understanding of microservices architecture, hands-on experience with various .NET technologies and Azure services, and the ability to design, build, deploy, and manage microservices applications effectively in both on-premises and cloud environments.
What you will learn
- Understand microservices architecture benefits
- Utilize the cloud-ready .NET Aspire stack along with its associated tools and libraries
- Develop REST APIs with ASP.NET Core minimal APIs
- Implement database integration with relational and NoSQL databases
- Containerize microservices using Docker
- Deploy microservices to the Azure Container Apps environment and Kubernetes
- Configure logging, monitoring, and tracing for microservices
- Use advanced communication patterns with SignalR, gRPC, queues, and events
Who this book is for
This book is for software developers, architects, and engineers who are interested in adopting microservices architecture using the .NET framework and Microsoft Azure. Both intermediate and advanced developers who have a foundational understanding of C#, ASP.NET Core, and cloud computing concepts will find this book helpful.
Table of Contents
- The big picture of the application and kick-off to Microservices
- The Minimal API – creating REST Services
- Writing data to relational and NoSQL databases
- Creating libraries for client applications
- Containerization of Microservices
- Microsoft Azure for Hosting of Applications
- Flexible configurations
- DevOps: Publishing with GitHub Actions
- Authentication and Authorization with clients and services
- All about testing the solution
- Logging and monitoring
- Scaling Services
- Real-time messaging with SignalR
- gRPC for Binary Communication
- Asynchronous Communication with Messages and Events
- Running the application on-premises and in the cloud