Practical Microservices with Dapr and .NET: A developer’s guide to building cloud-native applications using the event-driven runtime, 2nd Edition 2nd edition
by Davide Bedin ,Mark Russinovich (Foreword)
Publisher finelybook 出版社: Packt Publishing; 2nd edition (November 11, 2022)
Language 语言: English
Print Length 页数: 312 pages
ISBN-10: 1803248122
ISBN-13: 9781803248127
Book Description
Use the innovative, highly portable event-driven distributed application runtime to simplify building resilient and scalable microservices for cloud and edge applications.
Purchase of the print or Kindle book includes a free eBook in the PDF format.
Key Features
Build resilient, stateless, and stateful microservice applications that run on the cloud and edge
Overcome common issues in distributed systems, such as low latency and scaling, using any language and framework
Learn how to expose and operate Dapr applications with multiple options
Book Description
This second edition will help you get to grips with microservice architectures and how to manage application complexities with Dapr in no time. You’ll understand how Dapr simplifies development while allowing you to work with multiple languages and platforms. Following a C# sample, you’ll understand how Dapr’s runtime, building blocks, and software development kits (SDKs) help you to simplify the creation of resilient and portable microservices.
Dapr provides an event-driven runtime that supports the essential features you need for building microservices, including service invocation, state management, and publish/subscribe messaging. You’ll explore all of those in addition to various other advanced features with this practical guide to learning Dapr. With a focus on deploying the Dapr sample application to an Azure Kubernetes Service cluster and to the Azure Container Apps serverless platform, you’ll see how to expose the Dapr application with NGINX, YARP, and Azure API Management.
By the end of this book, you’ll be able to write microservices easily by implementing industry best practices to solve problems related to distributed systems.
What you will learn
Use Dapr to create services, invoking them directly and via pub/sub
Discover best practices for working with microservice architectures
Leverage the actor model to orchestrate data and behavior
Expose API built with Dapr applications via NGINX and Azure API Management
Use Azure Kubernetes Service to deploy a sample application
Monitor Dapr applications using Zipkin, Prometheus, and Grafana
Scale and load test Dapr applications on Kubernetes
Get to grips with Azure Container Apps as you combine Dapr with a serverless platform
Who this book is for
This book is for developers looking to explore and implement microservices architectures in Dapr applications using .NET examples. Whether you are new to microservices or have knowledge of this architectural approach and want to get hands-on experience using Dapr, you’ll find this book useful. Familiarity with .NET will help you to understand the C# samples and code snippets used in the book.
Table of Contents
Introducing Dapr
Debugging Dapr Solutions
Microservices Architecture with Dapr
Service-to-Service invocation
Introducing State Management
Publish and Subscribe
Resource bindings
Using Actors
Deployment to Kubernetes
Exposing Dapr Applications
Tracing Dapr Application
Load testing and Scaling Dapr
Leveraging serverless containers with Dapr