Building Resilient Applications with Dapr
Dapr, also known as Distributed Application Runtime, is a runtime environment that is event-driven and portable. It simplifies the process of building applications that are both stateful and stateless and can operate on the cloud or edge, enabling any developer to create resilient applications. Dapr was initiated and announced by Microsoft on October 16, 2019; however, Dapr is not owned by Microsoft and is being incubated at the Cloud Native Computing Foundation (CNCF). Dapr is an open source project and is hosted on GitHub. Dapr provides APIs or building blocks that help developers build microservices using industry best practices and patterns.
In this chapter, we will learn about the three main building blocks. In the context of Dapr, a building block refers to an HTTP or Google Remote Procedure Call (gRPC) API that can be accessed from code and utilizes one or more Dapr components. These building blocks are designed to tackle typical...