Skip to main content

Pro Microservices in .NET 6

With Examples Using ASP.NET Core 6, MassTransit, and Kubernetes

  • Book
  • © 2022


  • Shows you how to get up to speed with .NET 6, Docker, and microservices
  • Teaches you how to leverage microservice design patterns to strengthen an application
  • Provides environment options for orchestrators and Azure Kubernetes Service

This is a preview of subscription content, log in via an institution to check access.

Access this book

eBook USD 16.99 USD 49.99
Discount applied Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 16.99 USD 64.99
Discount applied Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

Licence this eBook for your library

Institutional subscriptions

Table of contents (9 chapters)


About this book

Know the fundamentals of creating and deploying microservices using .NET 6 and gain insight from prescriptive guidance in this book on the when and why to incorporate them.

The microservices architecture is a way of distributing process workloads to independent applications. This distribution allows for the independent applications to scale and evolve separately. It also enables developers to dismantle large applications into smaller, easier-to-maintain, scalable parts. While the return is valuable and the concept straightforward, applying it to an application is far more complicated. Where do you start? How do you find the optimal dividing point for your app, and strategically, how should your app be parceled out into separate services?

Pro Microservices in .NET 6 will introduce you to all that and more. The authors get you started with an overview of microservices, .NET 6, event storming, and domain-driven design. You will use that foundational information to build a reference application throughout the book. From there, you will create your first microservice using .NET 6 that you can deploy into Docker and Azure Kubernetes Service. You will also learn about communication styles, decentralizing data, and testing microservices. Finally, you will learn about logging, metrics, tracing, and use that information for debugging.

What You Will Learn

  • Build a foundation of basic microservices architecture design
  • Follow an example of using event storming and domain-driven design to understand the monolithic application modified for microservices
  • Understand, via detailed commands, how Docker is used to containerize applications
  • Get an overview of creating microservices from a monolithic application
  • Call microservices using RPC and messaging communication styles with MassTransit
  • Comprehend decentralizing data and handling distributed transactions
  • Use Azure Kubernetes Service to host and scale your microservices
  • Know the methods to make your microservices more robust
  • Discover testing techniques for RPC and messaging communication styles
  • Apply the applications you build for actual use
  • Practice cross-cutting concerns such as logging, metrics, and tracing

Who This Book Is For

Developers and software architects. Readers should have basic familiarity with Visual Studio and experience with .NET, ASP.NET Core, and C#.

Authors and Affiliations


    Sean Whitesell

  • Gilbert, USA

    Rob Richardson

  • Grove City, USA

    Matthew D. Groves

About the authors

Sean Whitesell is a Microsoft MVP and cloud architect at TokenEx, where he designs cloud-based architectural solutions for hosting internal services for TokenEx. He serves as President of the Tulsa Developers Association. He regularly presents in the community at developer events, conferences, and local MeetUps.

Rob Richardson is a software craftsman, building web properties in ASP.NET and Node, React, and Vue. He is a Microsoft MVP, published author, frequent speaker at conferences, user groups, and community events, and a diligent teacher and student of high-quality software development. You can find his recent work at

Matthew D. Groves is a Microsoft MVP who loves to code. From C# to jQuery, or PHP, he will submit pull requests for anything. He got his start writing a QuickBASIC point-of-sale app for his parent's pizza shop back in the 1990s. Currently a Product Marketing Manager for Couchbase, heis the author of the book AOP in .NET, and the video Creating and Managing Your First Couchbase Cluster.


Bibliographic Information

  • Book Title: Pro Microservices in .NET 6

  • Book Subtitle: With Examples Using ASP.NET Core 6, MassTransit, and Kubernetes

  • Authors: Sean Whitesell, Rob Richardson, Matthew D. Groves

  • DOI:

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Sean Whitesell, Rob Richardson, Matthew D. Groves 2022

  • Softcover ISBN: 978-1-4842-7832-1Published: 02 January 2022

  • eBook ISBN: 978-1-4842-7833-8Published: 01 January 2022

  • Edition Number: 1

  • Number of Pages: XXII, 298

  • Number of Illustrations: 161 b/w illustrations

  • Topics: Microsoft and .NET, Web Development

Publish with us