Building Microservices with .NET Core

Architect your .NET applications by breaking them into really small pieces—microservices—using this practical, example-based guide

Building Microservices with .NET Core

Gaurav Aroraa, Lalit Kale, Kanwar Manish

Architect your .NET applications by breaking them into really small pieces—microservices—using this practical, example-based guide
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785887833
Paperback274 pages

Book Description

Microservices 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.

Table of Contents

Chapter 1: What Are Microservices?
Origin of microservices
Discussing microservices
Monolithic architecture
Understanding the microservice architecture
Why should we use microservices?
How does the microservice architecture work?
Advantages of microservices
SOA versus microservices
Prerequisites of the microservice architecture
Understanding problems with the monolithic architecture style
Prerequisites for microservices
Identifying decomposition candidates within monolithic
Summary
Chapter 2: Building Microservices
Size of microservices
What makes a good service?
DDD and its importance for microservices
The concept of Seam
Communication between microservices
Revisiting the case study--Flix One
Summary
Chapter 3: Integration Techniques
Communication between services
Integration patterns
Summary
Chapter 4: Testing Strategies
How to test microservices
Testing strategies (testing approach)
Testing pyramid
Types of microservice tests
Tests in action
Summary
Chapter 5: Deployment
Monolithic application deployment challenges
Understanding the deployment terminology
Prerequisites for successful microservice deployments
Isolation requirements for microservice deployment
Need for a new deployment paradigm
Containers
Docker quick introduction
Chapter 6: Security
Security in monolithic applications
Security in microservices
Summary
Chapter 7: Monitoring
Instrumentation and telemetry
The need for monitoring
Monitoring challenges
Logging
Monitoring in Azure Cloud
Other microservice monitoring solutions
Summary
Chapter 8: Scaling
Scalability overview
Scaling infrastructure
Microservices scalability
Scaling the infrastructure
Scaling service design
Summary
Chapter 9: Reactive Microservices
What are reactive microservices?
Making it reactive
Event communication
Managing data
The microservice ecosystem
Reactive microservices - coding it down
Summary
Chapter 10: Creating a Complete Microservice Solution
Architectures before microservices
Monolith transitioning
Monitoring
Monitoring strategies
Reactive microservices
Greenfield application
Summary

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 extension

Authors

Table of Contents

Chapter 1: What Are Microservices?
Origin of microservices
Discussing microservices
Monolithic architecture
Understanding the microservice architecture
Why should we use microservices?
How does the microservice architecture work?
Advantages of microservices
SOA versus microservices
Prerequisites of the microservice architecture
Understanding problems with the monolithic architecture style
Prerequisites for microservices
Identifying decomposition candidates within monolithic
Summary
Chapter 2: Building Microservices
Size of microservices
What makes a good service?
DDD and its importance for microservices
The concept of Seam
Communication between microservices
Revisiting the case study--Flix One
Summary
Chapter 3: Integration Techniques
Communication between services
Integration patterns
Summary
Chapter 4: Testing Strategies
How to test microservices
Testing strategies (testing approach)
Testing pyramid
Types of microservice tests
Tests in action
Summary
Chapter 5: Deployment
Monolithic application deployment challenges
Understanding the deployment terminology
Prerequisites for successful microservice deployments
Isolation requirements for microservice deployment
Need for a new deployment paradigm
Containers
Docker quick introduction
Chapter 6: Security
Security in monolithic applications
Security in microservices
Summary
Chapter 7: Monitoring
Instrumentation and telemetry
The need for monitoring
Monitoring challenges
Logging
Monitoring in Azure Cloud
Other microservice monitoring solutions
Summary
Chapter 8: Scaling
Scalability overview
Scaling infrastructure
Microservices scalability
Scaling the infrastructure
Scaling service design
Summary
Chapter 9: Reactive Microservices
What are reactive microservices?
Making it reactive
Event communication
Managing data
The microservice ecosystem
Reactive microservices - coding it down
Summary
Chapter 10: Creating a Complete Microservice Solution
Architectures before microservices
Monolith transitioning
Monitoring
Monitoring strategies
Reactive microservices
Greenfield application
Summary

Book Details

ISBN 139781785887833
Paperback274 pages
Read More

Read More Reviews