
Learning Dapr
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Get the authoritative guide to Dapr, the distributed application runtime that works with new and existing programming languages alike. Written by the model's creators, this introduction shows you how Dapr not only unifies stateless, stateful, and actor programming models but also runs everywhere?in the cloud or on the edge.
Authors Haishi Bai and Yaron Schneider with Microsoft's Azure CTO team explain that, with Dapr, you don't need to include any SDKs or libraries in your user code. Instead, you automatically get flexible binding, state management, the actor pattern, pub-sub, reliable messaging, and many more features. This book shows developers, architects, CIOs, students, and computing enthusiasts how to get started with Dapr.
- Learn the new programming model for cloud native applications
- Write high-performance distributed applications without drilling into technical details
- Use Dapr with any language or framework to write microservices easily
- Learn how Dapr provides consistency and portability through open APIs and extensible, community-driven components
- Explore how Dapr handles state, resource bindings, and pub-sub messaging to enable resilient event-driven architectures that scale
- Integrate cloud applications with various SaaS offerings, such as machine learning
More details
Other editions
Additional editions

Content
- Intro
- Copyright
- Table of Contents
- Preface
- Resources
- Conventions Used in This Book
- O'Reilly Online Learning
- How to Contact Us
- Acknowledgments
- Introduction
- What Is Dapr?
- A Programming Model for a Heterogeneous Environment
- More Helpful, Less Opinionated
- Don't Reinvent the Wheel!
- Unified Programming Model
- Dapr Architecture
- Language Support
- Getting Started with Dapr
- Hello, World! with Dapr Standalone Mode
- Hello, World! with Dapr Kubernetes Mode
- Using gRPC
- Invoking an Application from a gRPC Client
- Writing a gRPC Server
- Bindings
- Binding in Standalone Mode
- Binding in Kubernetes Mode
- Summary
- Chapter 1. Services
- The World Before Cloud
- Cloud Promises and Challenges
- Availability
- Elasticity
- Cloud Native Applications
- Infrastructure Is Boring
- Service Invocation
- Name Resolution
- Requests and Responses
- Concurrency Control
- Service Invocation Experiment
- The Universal Namespace
- Pub/Sub
- Benefits of Message-Based Integration
- Pub/Sub with Dapr
- How Pub/Sub Works
- Dapr Components
- Dapr Configurations
- Custom Pipelines
- Custom Pipeline Experiment
- OAuth 2.0 Authorization
- Authoring a Custom Middleware
- Distributed Tracing
- Tracing Middleware
- Tracing with Zipkin
- Tracing with Azure Monitor
- Service Operation
- Service Deployment and Upgrade
- OAM
- Summary
- Chapter 2. State
- State Management
- Stateless Versus Stateful
- Why Are Stateless Services Preferred in the Cloud?
- Challenges of Hosting Stateful Services
- Converting Stateful Services to Stateless Services
- Dapr State Management
- Concurrency Model
- Consistency Model
- Bulk Operations and Transactions
- Multiple State Stores
- Retry Policies
- The Dapr State API
- Key Scheme
- Get Requests
- Set Requests
- Delete Requests
- Transactional Requests
- Working with the Dapr State API
- Data Handling Considerations
- Data Querying and Aggregation
- State Stores
- Redis
- Azure Cosmos DB
- Etcd
- Apache Cassandra
- Couchbase
- Custom State Stores
- Implementing the State API
- Updating the Component Registry
- Summary
- Chapter 3. Messaging
- Event-Driven Programming
- Messages Versus Events
- Input Bindings and Output Bindings
- Pub/Sub
- Pub/Sub with Dapr
- Implementing the PowerShell Script
- Testing Pub/Sub with the Dapr CLI
- Dapr Pub/Sub Behaviors
- Extending Dapr Pub/Sub
- Input and Output Bindings with Dapr
- Using Input Bindings
- Using Output Bindings
- Implementing Input Bindings
- Implementing Output Bindings
- Autoscaling with KEDA
- Messaging Patterns
- The Saga Pattern
- Content-Based Routing
- Routing Slip
- Smart Proxy
- MapReduce
- Summary
- Chapter 4. Security
- Securing a Distributed Application
- Access Control
- Data Protection
- Secured Communication
- Intrusion and Abnormality Detection
- Dapr Security Features
- Secret Stores
- Implementing a Secret Store
- The Secret API
- Mutual TLS (mTLS)
- Dapr mTLS
- Summary
- Chapter 5. Actors
- The Actor Pattern
- Modern Actor Frameworks
- Misuse of the Actor Model
- Dapr and Actors
- Invoking a Dapr Actor
- State Management
- Timers
- Reminders
- Getting Started with Writing Dapr Actors for C#
- Defining the Actor Interface
- Implementing the Actor Interface
- Summary
- Chapter 6. Application Patterns
- Cloud Native Applications
- Cloud Environment
- Cloud Native Applications with Dapr
- System Integrations with Dapr
- Distributed Workflow as Finite State Machine
- Synchronization
- Dapr in a Larger Ecosystem
- Yeoman Dapr Generator
- Dapr in Visual Studio Code
- Dapr with ASP.NET Core
- Dapr in a Bigger Application
- Dapr and Service Meshes
- Dapr on Edge
- Summary
- Chapter 7. Dapr's Future
- Capability Delivery
- Architecture
- Application Scenarios
- Enhanced Actors
- Aggregators
- Query Interface
- Actor Graph
- Multiversion Actors
- Actor Middleware
- The Universal Namespace
- Architecture
- Application Scenarios
- Dapr on Edge
- Dapr as a Lightweight Function Runtime
- Dapr in WebAssembly
- Dapr as a Script
- Other Dapr Improvements
- Dapr Component Projection
- Best Practices and Proven Patterns
- Dapr Descriptor
- Dapr to Facilitate Multiparty Computing
- Summary
- Index
- About the Authors
- Colophon
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.