#1
Design, build, and scale cloud-native microservices by using proven patterns such as CQRS, Saga, and event sourcing to enhance reliability, observability, and modern deployment
 
*Email sign-up and proof of purchase required
Key Features
  • Design scalable and maintainable microservices with domain modeling, S.O.L.I.D principles, and clean architecture
  • Simplify cloud development and deployment using containers, Kubernetes, serverless, and Aspire
  • Improve reliability and security through observability, automation, and zero-trust practices
  • Purchase of the print or Kindle book includes a free PDF eBook
Book Description
Are you a developer seeking practical, up-to-date insights into designing scalable and resilient microservices? Microservices Design Patterns in .NET, Second Edition provides a comprehensive exploration of modern microservices using C# 14 and .NET 10.
This edition expands on core patterns such as CQRS, event sourcing, and Saga, while introducing advanced concepts such as observability with OpenTelemetry, zero-trust security, and container-based workflows.
You’ll explore both synchronous and asynchronous communication, apply domain-driven design to define service boundaries, and manage data consistency using proven persistence strategies. The book also guides you through container hosting, serverless functions, and production-ready deployment pipelines.
By the end of this book, you’ll know how to design and deploy secure, maintainable, and resilient microservices that fit perfectly in modern cloud ecosystems.
Free with your book: DRM-free PDF version + access to Packt's next-gen Reader*
What you will learn
  • Design microservices with domain-driven design and bounded contexts
  • Build resilience with retries, circuit breakers, and caching
  • Apply CQRS, event sourcing, and Saga for reliable workflows
  • Use OpenTelemetry and .NET Aspire for monitoring and tracing
  • Secure APIs with IdentityServer, bearer tokens, and zero-trust principles
  • Deploy and scale using containers, Kubernetes, and serverless platforms
Who this book is for
This book is ideal for .NET developers, senior developers, software architects, and DevOps engineers who want to explore the pros and cons, intricacies, and overall implementation of microservice architecture. You’ll also get plenty of valuable insights if you’re seeking to expand your knowledge of different design patterns and supporting technologies.
Table of Contents
  1. Introducing Microservices – the Big Picture
  2. Applying Domain-Driven Design Principles
  3. Synchronous Communication between Microservices
  4. Asynchronous Communication Between Microservices
  5. Working with the Aggregator Pattern
  6. Working with the CQRS Pattern
  7. Applying Event-Sourcing Patterns
  8. Database Design Strategies for Microservices
  9. Implementing Transactions across Microservices Using the Saga Pattern
  10. Building Resilient Microservices
  11. Implementing the API and BFF Gateway Patterns
  12. Micro Frontends — Extending Microservices to the Frontend
  13. Securing Microservices
  14. Container Hosting and Development Patterns
  15. Serverless Microservices Development
  16. Observability and Monitoring with Modern Tools
  17. Wrapping It All Up

 
Hidden Content
You must register or login to view this content.