
- 328 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Microservices in .NET, Second Edition
About 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 to: 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 AzureAbout 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 CONCERNS: BUILDING A REUSABLE MICROSERVICE PLATFORM
9 Cross-cutting concerns: Monitoring and logging
10 Securing microservice-to-microservice communication
11 Building a reusable microservice platform
PART 4 BUILDING APPLICATIONS
12 Creating applications over microservices
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Part 1 Getting started with microservices
1 Microservices at a glance
- Understanding microservices and their core characteristics
- Examining the benefits and drawbacks of microservices
- An example of microservices working in concert to serve a user request
- Using ASP.NET for a simple application
1.1 What is a microservice?
- Receive stock arriving at the warehouse.
- Determine where new stock should be stored.
- Calculate placement routes inside the warehouse for putting stock into the right storage units.
- Assign placement routes to warehouse employees.
- Receive orders.
- Calculate pick routes in the warehouse for a set of orders.
- Assign pick routes to warehouse employees.
- A request to receive and log new stock arrives over HTTP. This might come from another microservice or perhaps from a web page that a foreman uses to register stock arrivals. The responsibility of Receive Stock microservice is to handle such requests by validating the request and correctly registering the new stock in a data store.
- A response is sent back from the Receive Stock microservice to acknowledge that the stock has been received.

- Runs in its own separate process
- Can be deployed on its own, independently of the other microservices
- Has its own dedicated data store
- Collaborates with other microservices to complete its own action
1.2 What is a microservices architecture?
- Deployment frequency
- Lead time for changes
- Time to restore service
- Change failure rate
1.2.1 Microservice characteristics
- A microservice is responsible for a single capability.
- A microservice is individually deployable.
- A microservice consists of one or more processes.
- A microservice owns its own data store.
- A small team can maintain a few handfuls of microservices.
- A microservice is replaceable.
Table of contents
- Microservices in .NET
- Copyright
- Praise for the first edition
- contents
- front matter
- 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 concerns: Building a reusable microservice platform
- 9 Cross-cutting concerns: Monitoring and logging
- 10 Securing microservice-to-microservice communication
- 11 Building a reusable microservice platform
- Part 4 Building applications
- 12 Creating applications over microservices
- appendix A. Development environment setup
- further reading
- index
- inside back cover