Build resilient and secure microservices with the .NET stack and embrace serverless development in Azure
Gabriel Baptista, Francesco Abbruzzese

#C#
#Microservices
#Aspire
#Azure
#Docker
#Kubernetes
در این کتاب، توسعهی مایکروسرویسها از زاویهای عملی و کاربردی بررسی میشود تا محدودیتهای واقعی آنها روشن شود.
این اثر از نویسندگان مجموعهی Software Architecture with C# and .NET، یک راهنمای عملی و واقعی برای مایکروسرویسها با استفاده از .NET است.
این کتاب برای توسعهدهندگان .NET نوشته شده که وارد دنیای اپلیکیشنهای مدرن ابری و توزیعشده میشوند. در آن خواهید دید چه زمانی معماری مایکروسرویس و Serverless برای ساخت راهکارهای سازمانی مقیاسپذیر مناسب است و چه زمانی خیر. کتاب دیدگاهی واقعبینانه از کاربردها و محدودیتها ارائه میدهد و به جای تبلیغ «مایکروسرویس بهعنوان راهحل واحد»، رویکردی هوشمندانه و متناسب با نیازهای واقعی پیشنهاد میکند.
پس از مرور مقدمات و آمادهسازی محیط، با مثالهایی مثل وبسایت اشتراکگذاری خودرو (Ride-sharing) کار میکنید. طی مسیر، با Docker، Kubernetes، Azure Container Apps و ابزار جدید .NET Aspire کار خواهید کرد و مباحث امنیت، مانیتورینگ و مدیریت هزینه را خواهید آموخت. در پایان، یک اپلیکیشن رویدادمحور کامل خواهید ساخت که همهی مباحث را کنار هم قرار میدهد.
این کتاب برای مهندسان و توسعهدهندگان ارشد نرمافزار نوشته شده که قصد دارند وارد حوزهی اپلیکیشنهای ابری مدرن و سیستمهای توزیعشده شوند. هدف آن ارتقای دانش حرفهایها در زمینهی مایکروسرویس و معماری Serverless است تا بتوانند بهترین بهره را از هر دو مدل ببرند.
پیشنیاز: تجربهی قبلی با C#/.NET و Microsoft Stack (Entity Framework و ASP.NET Core)
اگر از خوانندگان مجموعهی Software Architecture with C# and .NET بودهاید، این کتاب مباحث منتخب آن را با عمق بیشتری بررسی میکند.
💬 Jaures Beinjamin (Microsoft MVP، همبنیانگذار .NET Cameroon):
«بیشتر کتابهایی که مدعی راهنمایی توسعهی cloud-native با .NET هستند یا مفاهیم اصلی را سطحی رد میکنند یا با نمودارهای انتزاعی و اصطلاحات سنگین، از دنیای واقعی فاصله میگیرند.
این کتاب برعکس است. Practical Serverless and Microservices with C# راهنمایی عملی، توسعهدهندهمحور و کاربردی است که شما را در ساخت مایکروسرویسهای امن، مقاوم و مقیاسپذیر در Azure همراهی میکند. نویسندگان (Gabriel Baptista و Francesco Abbruzzese) فراتر از تئوری رفتهاند و هر مفهوم را به چیزی عملی، قابل استفاده و مرتبط با دنیای واقعی تبدیل کردهاند.»
💬 Martyn Coupland (CTO در The Edge Hub، Microsoft MVP - .NET):
«این کتاب دقیقاً همان چیزی را ارائه میدهد که عنوانش وعده میدهد: راهنمایی عملی و مثالمحور برای ساخت اپلیکیشنهای cloud-native مدرن با .NET و Azure. نویسندگان مفاهیم پیچیده را به گامهای قابل اجرا تقسیم کردهاند و با اپلیکیشن اشتراکگذاری خودرو، الگوهای مایکروسرویس و Serverless را زنده میکنند.»
💬 Xiaodi Yan (Lead Engineer در Kiwibank، Microsoft MVP):
«[...] آنچه برایم جذاب بود پایان هر فصل با پرسشهای مرور و منابع مطالعهی بیشتر است. الگوهای واقعی از طریق اپلیکیشن اشتراکگذاری خودرو نشان داده شدهاند تا مفاهیمی مثل پیامرسانی مقاوم، کارهای پسزمینه و Triggers رویدادمحور در خدمات مختلف بهوضوح کاربردی شوند. همچنین مقایسهی Triggers مختلف Azure Functions (مثل HTTP، Blob، Queue و Service Bus) کمک میکند تصمیمهای طراحی آگاهانهتری بگیرید. امنیت و مانیتورینگ هم بهخوبی پوشش داده شده است. اگر قصد دارید وارد دنیای Serverless و Microservices با .NET شوید، این کتاب هم شفافیت دارد و هم کد.»
Take a realistic look at microservices and distributed systems with the .NET stack to understand the limitations of microservices development through a practical lens
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 the book, you’ll have a well-rounded understanding of cloud and distributed .NET—viewed through the lens of two industry veterans.
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.
“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
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.









