Jump to ratings and reviews
Rate this book

Microservices in .NET

Rate this book
Microservices in .NET, Second Edition teaches you to build and deploy microservices using ASP.NET and Azure services.

Summary
In Microservices in .NET, Second Edition you will learn how

Build scalable microservices that are reliable in production
Optimize microservices for continuous delivery
Design event-based collaboration between microservices
Deploy microservices to Kubernetes
Set up Kubernetes in Azure

Microservices in .NET, Second Edition is a comprehensive guide to building microservice applications using the .NET stack. After a crystal-clear introduction to the microservices architectural style, it teaches you practical microservices development skills using ASP.NET. This second edition of the bestselling original has been revised with up-to-date tools for the .NET ecosystem, and more new coverage of scoping microservices and deploying to Kubernetes.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the technology
Microservice architectures connect independent components that must work together as a system. Integrating new technologies like Docker and Kubernetes with Microsoft’s familiar ASP.NET framework and Azure cloud platform enables .NET developers to create and manage microservices efficiently.

About the book
Microservices in .NET, Second Edition teaches you to build and deploy microservices using ASP.NET and Azure services. It lays out microservice architecture simply, and then guides you through several real-world projects, such as building an ecommerce shopping cart. In this fully revised edition, you’ll learn about scoping microservices, deploying to Kubernetes, and operations concerns like monitoring, logging, and security.

What's inside

Optimize microservices for continuous delivery
Design event-based collaboration between microservices
Deploy microservices to Kubernetes
Set up Kubernetes in Azure

About the reader
For C# developers. No experience with microservices required.

About the author
Christian Horsdal is an independent consultant with more than 20 years of experience building projects from large-scale microservice systems to tiny embedded systems.

Table of Contents
PART 1 GETTING STARTED WITH MICROSERVICES
1 Microservices at a glance
2 A basic shopping cart microservice
3 Deploying a microservice to Kubernetes
PART 2 BUILDING MICROSERVICES
4 Identifying and scoping microservices
5 Microservice collaboration
6 Data ownership and data storage
7 Designing for robustness
8 Writing tests for microservices
PART 3 HANDLING CROSS-CUTTING BUILDING A REUSABLE MICROSERVICE PLATFORM
9 Cross-cutting Monitoring and logging
10 Securing microservice-to-microservice communication
11 Building a reusable microservice platform
PART 4 BUILDING APPLICATIONS
12 Creating applications over microservices

328 pages, Paperback

Published November 23, 2021

22 people are currently reading
209 people want to read

About the author

Christian Horsdal

5 books1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
21 (32%)
4 stars
34 (52%)
3 stars
8 (12%)
2 stars
2 (3%)
1 star
0 (0%)
Displaying 1 - 11 of 11 reviews
Profile Image for Sebastian Gebski.
1,189 reviews1,342 followers
February 7, 2017
Surprisingly good & comprehensive. Guides you step by step through (almost) all the building steps for near-production-quality services. It's very detailed & still - it doesn't make shortcuts. There are still few minor topics that could have been covered (like versioning, discovery services, deployment practices, etc.), but these are details one can forgive :)

Ok, some more remarks:
1. monitoring is covered, but only very simple black-box monitoring
2. this is NOT really a book about .NET Core -> it's used as a platform for building microservices, but its specifics or advantages are never really mentioned, it's just there, no excitement (same applies to NancyFX)
3. as a side effect this book is quite a nice, _practical_ guide to OWIN - the word "practical" is important here: author shows how to use OWIN's extensibility for one's advantage. Nice.
4. entry threshold is minimal (well, you have to know C# ...)

In few short words: very decent book. Especially if you're already well familiar in .NET & you did similar architecture with a slightly different tech stack. It's really interesting to observe how some topics are being approached (& well described by someone else). Recommended.
Profile Image for Victor.
41 reviews8 followers
February 23, 2020
Practical book, although the samples are a bit outdated (.NET Core 1.0). I haven't used Nancy before, so it was interesting to see how easy it is to use. I liked the fact that the examples are focused on a single domain, unfortunately it's the common e-commerce shop. Also it touches (sometimes only superficially) on many aspects of designing and delivering a solution using the microservices architectural style, from identifying boundaries and choosing collaboration styles to security, logging and building a microservices platform (a service template).
600 reviews11 followers
August 30, 2016
A well written book on how to create microservices. Using Nancy as the main framework is a great decision. Not only do you get a well explained foundation, you can run it on the normal .Net Framework as well. This is especially helpful when you don’t want to jump to the new .Net Core right now. The book is not jet finished, but it contains all you need to start.
Profile Image for Sergey Tihon.
3 reviews10 followers
June 3, 2017
The book is not really about .NET Core (btw, it still uses project.json) and not about real-world giant microservice systems.
Expect to read about very basic microservices concepts and briefly touch technologies like OWIN, Nancy, IdentityServer, Polly, Serilog and xUnit
Profile Image for Marcin.
27 reviews11 followers
May 16, 2017
Well written book that touches topic in broad range. Examples are good, and fact that they build up into full app is an advantage.
What I've liked is that it shows microservice architecture from different angles, not only how to scope or build a microservice, but also shows that you need monitoring (and gives few hints about that), different approach to security etc.
Using Nancy as a main framework was a good choice imho.
Profile Image for Ryan Riley.
36 reviews3 followers
January 5, 2022
The second edition of Microservices in .NET is an outstanding update to an already excellent book. A lot has changed in .NET since the previous edition was published, and this edition captures and explores all of the important updates. This book is perfect for those looking for an overview of microservices or specifics regarding implementing microservices in .NET.

For those familiar with the first edition, updates include use of ASP.NET Core rather than Nancy and OWIN, deploying to kubernetes, and new libraries for cross-cutting concerns. It does not provide exhaustive coverage for all topics.

Overall, this is an excellent, well-written, and concise resource.
Profile Image for David.
19 reviews4 followers
December 26, 2021
This second version of Microservices in .NET is a complete rewrite of the first version and it contains a clear presentation of the latest best practices to build microservices on top of Microsoft ASP.NET and deploy them in containers running on Kubernetes.

A highly recommended read for all developers building microservices in C#.
50 reviews14 followers
April 8, 2017
Where comprehensive book about Microservices in the .NET world. Some people are afraid of this book because of the Nancy Framework. In my opinion, examples are very readable, and every framework can be replaced with any other favorite one.

Well written, with good examples, from zero to hero. Highly recommended for a .NET developer.
Profile Image for Alexander.
7 reviews
April 24, 2017
A lot of useful ideas to structure a distributed application in a microservices way.
Displaying 1 - 11 of 11 reviews

Can't find what you're looking for?

Get help and learn more about the design.