
- 274 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Building Microservices with .NET Core
About this book
Architect your.NET applications by breaking them into really small pieces—microservices—using this practical, example-based guideAbout This Book• Start your microservices journey and understand a broader perspective of microservices development• Build, deploy, and test microservices using ASP.Net MVC, Web API, and Microsoft Azure Cloud• Get started with reactive microservices and understand the fundamentals behind itWho This Book Is ForThis book is for.NET Core developers who want to learn and understand microservices architecture and implement it in their.NET Core applications. It's ideal for developers who are completely new to microservices or have just a theoretical understanding of this architectural approach and want to gain a practical perspective in order to better manage application complexity.What You Will Learn• Compare microservices with monolithic applications and SOA• Identify the appropriate service boundaries by mapping them to the relevant bounded contexts• Define the service interface and implement the APIs using ASP.NET Web API• Integrate the services via synchronous and asynchronous mechanisms• Implement microservices security using Azure Active Directory, OpenID Connect, and OAuth 2.0• Understand the operations and scaling of microservices in.NET Core• Understand the testing pyramid and implement consumer-driven contract using pact net core• Understand what the key features of reactive microservices are and implement them using reactive extensionIn DetailMicroservices is an architectural style that promotes the development of complex applications as a suite of small services based on business capabilities. This book will help you identify the appropriate service boundaries within the business. We'll start by looking at what microservices are, and what the main characteristics are.Moving forward, you will be introduced to real-life application scenarios, and after assessing the current issues, we will begin the journey of transforming this application by splitting it into a suite of microservices.You will identify the service boundaries, split the application into multiple microservices, and define the service contracts. You will find out how to configure, deploy, and monitor microservices, and configure scaling to allow the application to quickly adapt to increased demand in the future.With an introduction to the reactive microservices, you strategically gain further value to keep your code base simple, focusing on what is more important rather than the messy asynchronous calls.Style and approachThis guide serves as a stepping stone that helps.NET Core developers in their microservices architecture. This book provides just enough theory to understand the concepts and apply the examples.
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
What Are Microservices?
- Origin of microservices
- Discussing microservices
- Understanding the microservice architecture
- Advantages of microservices
- SOA versus microservices
- Understanding problems with the monolithic architectural style
- Challenges in standardizing the .NET stack
Origin of microservices
Discussing microservices
- The monolithic architecture style
- SOA
Monolithic architecture
- User interface: This handles all of the user interaction while responding with HTML or JSON or any other preferred data interchange format (in the case of web services).
- Business logic: All the business rules applied to the input being received in the form of user input, events, and database exist here.
- Database access: This houses the complete functionality for accessing the database for the purpose of querying and persisting objects. A widely accepted rule is that it is utilized through business modules and never directly through user-facing components.

- Large code base: This is a scenario where the code lines outnumber the comments by a great margin. As components are interconnected, we will have to bear with a repetitive code base.
- Too many business modules: This is in regard to modules within the same system.
- Code base complexity: This results in a higher chance of code breaking due to the fix required in other modules or services.
- Complex code deployment: You may come across minor changes that would require whole system deployment.
- One module failure affecting the whole system: This is in regard to modules that depend on each other.
- Scalability: This is required for the entire system and not just the modules in it.
- Intermodule dependency: This is due to tight coupling.
- Spiraling development time: This is due to code complexity and interdependency.
- Inability to easily adapt to a new technology: In this case, the entire system would need to be upgraded.
Service-oriented architecture
Table of contents
- Title Page
- Copyright
- Credits
- Foreword
- About the Authors
- About the Reviewers
- www.PacktPub.com
- Customer Feedback
- Preface
- What Are Microservices?
- Building Microservices
- Integration Techniques
- Testing Strategies
- Deployment
- Security
- Monitoring
- Scaling
- Reactive Microservices
- Creating a Complete Microservice Solution