Understanding Microservices with .NET
eBook - ePub

Understanding Microservices with .NET

Design, build, and run resilient .NET microservices at scale (English Edition)

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Understanding Microservices with .NET

Design, build, and run resilient .NET microservices at scale (English Edition)

About this book

Description
Microservices let teams ship faster and scale independently, but they add complexity in design, data, and operations. This book shows how to build cloud-ready services with modern .NET and ASP.NET Core using containers and Kubernetes grounded in real patterns and trade-offs for developers, architects, and DevOps engineers.

The book begins by establishing the core principles of microservices, detailing when and how to apply powerful design patterns like domain-driven design (DDD), Saga, CQRS, and Circuit Breaker for resilience. You will move on to hands-on development, building a full e-commerce application with services for Catalog, Basket, and Ordering, and implementing asynchronous communication using MassTransit and RabbitMQ for reliable transactions. The book then transitions to essential operational maturity, covering centralized security with IdentityServer4, testing, containerization with Docker, building strong CI/CD pipelines, and advanced deployment to Kubernetes using Helm and Terraform (GitOps). The final section ensures your services run flawlessly by teaching you scaling (HPA/VPA), deep observability with Prometheus, and future trends like agentic AI microservices.

By the end, you will model bounded contexts, choose the right sync/async protocols, apply resiliency patterns, secure and version APIs, automate delivery, run on Kubernetes, and instrument your system—confidently shipping scalable, reliable .NET microservices.

What you will learn
? Build fast .NET Web APIs and gRPC endpoints.
? Add resiliency with retries, circuit breakers, and timeouts.
? Secure microservices using OAuth2, OIDC, and JWT tokens.
? Automate CI/CD, GitOps, and blue-green Kubernetes releases safely.
? Design robust microservices using DDD, Saga, CQRS, and MassTransit/RabbitMQ patterns.

? Achieve deep observability using OpenTelemetry, Prometheus/Grafana, and ELK stack.

Who this book is for
This book is for .NET developers, backend engineers, solution architects, DevOps/SREs, and technical leads who are new to microservices or modernizing monoliths. It suits beginner-to-mid-level practitioners and senior engineers seeking a pragmatic, end-to-end playbook for designing, building, securing, deploying, and operating cloud-native services on .NET.

Table of Contents
1. Introduction to Microservices Architecture
2. When to Use Microservices
3. Designing Microservices for Distributed Systems
4. Designing Robust Microservices
5. Leveraging .NET for Microservices Development
6. Microservices Architecture for a Typical E-commerce
7. Developing the Catalog Microservice
8. Creating the Basket API Microservice
9. Building the Ordering Microservice
10. Developing Shipping and Handling Microservices
11. Implementing Security Across Microservices
12. Containerizing Microservices with Docker
13. Strategies for Testing and Test-driven Development
14. Deployment Patterns for Microservices
15. Continuous Integration and Continuous Deployment
16. Infrastructure as Code and GitOps
17. Deploying with Kubernetes
18. Scaling Microservices with Kubernetes
19. Monitoring and Logging Microservices
20. Real-world Examples and Case Studies
21. Challenges and Best Practices
22. Conclusion and Future Trends

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2025
eBook ISBN
9789365899986

Table of contents

  1. Cover Page
  2. Title Page
  3. Copyright Page
  4. Dedication
  5. About the Author
  6. About the Reviewers
  7. Acknowledgement
  8. Preface
  9. Table of Contents
  10. 1. Introduction to Microservices Architecture
  11. 2. When to Use Microservices
  12. 3. Designing Microservices for Distributed Systems
  13. 4. Designing Robust Microservices
  14. 5. Leveraging .NET for Microservices Development
  15. 6. Microservices Architecture for a Typical E-commerce
  16. 7. Developing the Catalog Microservice
  17. 8. Creating the Basket API Microservice
  18. 9. Building the Ordering Microservice
  19. 10. Developing Shipping and Handling Microservices
  20. 11. Implementing Security Across Microservices
  21. 12. Containerizing Microservices with Docker
  22. 13. Strategies for Testing and Test-driven Development
  23. 14. Deployment Patterns for Microservices
  24. 15. Continuous Integration and Continuous Deployment
  25. 16. Infrastructure as Code and GitOps
  26. 17. Deploying with Kubernetes
  27. 18. Scaling Microservices with Kubernetes
  28. 19. Monitoring and Logging Microservices
  29. 20. Real-world Examples and Case Studies
  30. 21. Challenges and Best Practices
  31. 22. Conclusion and Future Trends
  32. Index

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Understanding Microservices with .NET by Sepehr Pakbaz in PDF and/or ePUB format, as well as other popular books in Computer Science & Cloud Computing. We have over 1.5 million books available in our catalogue for you to explore.