In this episode @HenrikRexed explores Dapr (Distributed Application Runtime), a CNCF open-source framework from Diagrid that helps build cloud-native applications by decoupling the infrastructure layer from your code. We'll cover:
- Presenting the Dapr project.
- Explaining the various APIs available in Dapr.
- Looking at the necessary Dapr configuration files.
- Briefly explaining how to use Dapr when building microservices.
- Covering Dapr's observability features.
Dapr acts as an application proxy, empowering developers to create stateless and stateful microservices without being tied to specific storage solutions like Kafka or PostgreSQL. Learn how Dapr simplifies development by providing predefined sets of actions through its APIs, allowing you to focus on business logic rather than backend specifics. We'll dive into :
- Dapr's building blocks, including Service Invocation, State Management, Pub/Sub, Bindings, Secrets Management, Actors, Configuration, Workflows, Conversation API for LLMs, Jobs API, and Crypto API. Discover how the Dapr SDK in languages like .NET, Python, Java, and Go facilitates the use of these building blocks.
- Understand the essential Dapr configuration objects: Core Configuration, Resiliency policies (timeouts, retries, circuit breakers), and Component Setup. See an example of configuring Redis for state storage.
- We'll illustrate building components with Dapr through examples of migrating a product catalog to PostgreSQL and integrating with Kafka, showcasing the Dapr client and annotations for Kubernetes deployment.
- Finally, we'll delve into Dapr's observability capabilities, including tracing with OpenTelemetry, metrics in Prometheus format (with recommendations for configuration to manage cardinality), and various types of logs produced by Dapr control plane and proxies. Learn how to configure and scrape these observability signals in Kubernetes.
---------------------------
📖 Chapters 📖
00:00 Introduction
02:03 Dapr
06:41 Building Blocks
12:38 Configuration
14:31 How to use Dapr
18:02 Observability
25:18 Conclusion
-----------------------------
🔗 Additional Links
Dapr Docs
Dapr Observability
Dapr metrics
Tutorial
Try out Dynatrace with a free trial
-----------------------------
Subscribe to our YT channel
Stay up-to-date with Dynatrace! Follow us on Facebook, Instagram, LinkedIn, Twitter, Twitch