Practical Serverless and Microservices with C#: Build resilient and secure microservices with the .NET stack and embrace serverless development in Azure

Practical Serverless and Microservices with C#: Build resilient and secure microservices with the .NET stack and embrace serverless development in Azure book cover

Practical Serverless and Microservices with C#: Build resilient and secure microservices with the .NET stack and embrace serverless development in Azure

Author(s): Gabriel Baptista (Author), Francesco Abbruzzese (Author)

  • Publisher: Packt Publishing
  • Publication Date: 3 July 2025
  • Language: English
  • Print length: 472 pages
  • ISBN-10: 1836642016
  • ISBN-13: 9781836642015

Book Description

Take a realistic look at microservices and distributed systems with the .NET stack to understand the limitations of microservices development through a practical lens

Free with your book: DRM-free PDF version + access to Packt’s next-gen Reader*

Key Features

  • Work through common scenarios encountered when developing distributed microservices applications
  • Understand cost considerations, traffic limits, and time limits surrounding serverless environments
  • Take full advantage of the synergy between Azure services (Container Apps, Functions, and Aspire) and .NET code
  • Purchase of the print or Kindle book includes a free eBook in PDF format

Book Description

From the authors of the Software Architecture with C# and .NET series comes this practical and grounded showcase of microservices using the .NET stack.

Written for .NET developers entering the world of modern cloud and distributed applications, it shows you when microservices and serverless architectures are the right choice for building scalable enterprise solutions and when they’re not. You’ll gain a realistic understanding of their use cases and limitations. Rather than promoting microservices as a one-size-fits-all solution, it encourages thoughtful adoption based on real-world needs.

Following a brief introduction and important setup, the book helps you prepare for practical application through examples such as a ride-sharing website. You’ll work with Docker, Kubernetes, Azure Container Apps, and the new .NET Aspire with considerations for security, observability, and cost management. The book culminates in a complete event-driven application that brings together everything you’ve covered.

By the end of this microservices book, you’ll have a well-rounded understanding of cloud and distributed .NET—through the lens of two industry veterans.

*Email sign-up and proof of purchase required

What you will learn

  • Set up serverless environments in Azure for developing and debugging
  • Design reliable communication and computation across microservices
  • Explore Azure Functions in depth and use triggers for IoT and background tasks
  • Use Azure Container Apps to simplify the creation and management of containers
  • Apply best practices to secure a microservices application
  • Accurately assess and calculate costs and usage limits in serverless solutions

Who this book is for

This book is for engineers and senior software developers looking to advance into modern cloud and distributed applications. It helps professionals evolve their knowledge of microservices and serverless architecture to get the best of both architectural models. Prior experience with C#/.NET and the Microsoft Stack (Entity Framework and ASP.NET Core) is required to get the most out of this book.

If you’ve enjoyed the authors’ previous Software Architecture with C# and .NET series, this new book offers an in-depth exploration of select topics in those earlier works.

Table of Contents

  1. Demystifying Serverless Applications
  2. Demystifying Microservices Applications
  3. Setup and Theory: Docker and Onion Architecture
  4. Azure Functions and Triggers Available
  5. Background Functions in Practice
  6. IoT Functions in Practice
  7. Microservices in Practice
  8. Practical Microservices Organization with Kubernetes
  9. Simplifying Containers and Kubernetes: Azure Container Apps and Other Tools
  10. Security and Observability for Serverless and Microservices Applications
  11. The Car Sharing App
  12. Simplifying Microservices with .NET Aspire

Editorial Reviews

Review

“Most books that claim to guide you through cloud-native .NET development fall into one of two traps: they either gloss over the core concepts or overwhelm you with abstract diagrams and theoretical jargon, disconnected from real-world development.

This book does the exact opposite. Practical Serverless and Microservices with C# is a hands-on, developer-focused guide that walks you through building secure, resilient, and scalable microservices on Azure. Gabriel Baptista and Francesco Abbruzzese go beyond theory and turn every concept into something practical, usable, and relevant to modern .NET applications.

From advanced use of Azure Functions to orchestration with Kubernetes, security, observability, and the promising arrival of .NET Aspire, each chapter blends clarity, depth, and real-world applicability. It’s the ideal companion for any .NET developer looking to seriously embrace cloud-native development without sacrificing understanding or quality.”

Jaures Beinjamin, Microsoft MVP, Co-Founder of .NET Cameroon

“Practical Serverless and Microservices with C# delivers exactly what its title promises—a hands-on, example-driven guide to building modern, cloud-native applications with .NET and Azure. Authors Gabriel Baptista and Francesco Abbruzzese break down complex concepts into actionable steps, using a detailed car-sharing app to bring microservices and serverless patterns to life.

From Azure Functions and Docker to Kubernetes and .NET Aspire, each chapter combines clear explanations with real-world scenarios, helping developers move beyond theory and apply what they’ve learned immediately. Whether you’re scaling legacy systems or starting greenfield projects, this book offers the practical tools and confidence to build resilient, production-ready systems.”

Martyn Coupland, Chief Technology Officer at The Edge Hub, Microsoft MVP – .NET

“[…] I really like how this book ends with review questions and further reading to deepen the readers’ understanding. Real-world patterns are illustrated through a consistent car-sharing app, showcasing how to apply concepts like resilient messaging, background jobs, and event-driven triggers across services. The book provides comparisons between different Azure Function triggers (HTTP, Blob, Queue, Service Bus, etc.), helping developers make informed design decisions. It also covers critical topics for any cloud-native application, such as security and observability. If you are diving into serverless microservices using .NET, this book offers both clarity and code.”

Xiaodi Yan, Lead Engineer at Kiwibank, Microsoft MVP

“I’m impressed by how well-written it is, covering everything essential for understanding serverless and microservices concepts in the context of what Azure and .NET have to offer. It provides a solid overview of the history and current state of microservices, discussing scenarios where their adoption is suitable or not, while emphasizing that different projects require different architectural approaches and offering valuable insights to help make the right choice.”

Alexandre Felipe Malavasi Cardoso, CTO at Marelo, Microsoft MVP

About the Author

Gabriel Baptista is a seasoned technology professional with over two decades of experience in software development and team leadership. He currently leads a team focused on building application software for retail and industry. In parallel, he serves as a member of a technical advisory board, teaches computer engineering at the undergraduate level, and has co-founded technology start-ups in the fields of industrial automation and intelligent logistics. Throughout his career, he has contributed extensively to academia, teaching subjects related to software engineering and information technology at various educational institutions.

Francesco Abbruzzese is the author of the MVC Controls Toolkit and Blazor Controls Toolkit libraries. He has contributed to the diffusion and evangelization of the Microsoft web stack since the first version of ASP.NET MVC. His company, Mvcct Team, offers web applications, tools, and services for web technologies. He moved from AI systems, where he implemented one of the first decision support systems for financial institutions, to top-10 video game titles such as Puma Street Soccer.

View on Amazon

未经允许不得转载:Wow! eBook » Practical Serverless and Microservices with C#: Build resilient and secure microservices with the .NET stack and embrace serverless development in Azure