Skip to content
 
 

Repository files navigation

Dapr Building Block APIs

This repo contains Dapr applications to demonstrate several Dapr building block APIs and the built-in resiliency capabilities.

Running the DemoTime demos in this repo is recommended since this gives more context about:

  • The Dapr OSS project
  • State Management API
  • Service Invocation API
  • Pub/Sub API
  • Resiliency policies
  • Dapr Workflow

Table of Contents

Prerequisites

Ensure you have these installed on your machine:

  • .NET 9

  • Dapr CLI

  • Docker Desktop

  • VSCode - Although other IDEs can be used to view the code, some VSCode specific extensions are used (such as DemoTime) to help guide you through the slides and the codebase.

  • For Demo 1b and Demo 2 a Postgres database is required that can be installed via docker:

    docker pull postgres:latest
    docker run --name postgres -e POSTGRES_PASSWORD=postgres123 -d postgres -p 5432:5432 
  1. Clone the this repo to your local machine.
  2. Open the cloned repo in VSCode and accept the suggested VSCode extensions.

Running the demos with DemoTime

Click the play button in the DEMO TIME panel in the explorer to start the slides and demos.

Progress through the slides and demos by clicking the DEMO TIME icon in the status bar or the next step in the DEMO TIME panel in the explorer.

Demo 1a, 1b, 2 State Management

Demo 3 Service Invocation

Demo 4 Pub/Sub

Demo 5 Workflow

Diagrid Dev Dashboard

The Diagrid Dev Dashboard is used during local development of Dapr workflow applications. It shows the workflow state, and the full execution history of the workflow instances.

Diagrid Dev Dashboard

Diagrid Dev Dashboard

Diagrid Catalyst

If you're running Dapr Workflow applications in production check out Diagrid Catalyst, the enterprise platform for Dapr Workflow and Agentic AI.

Diagrid Catalyst

Resources

About

This repo contains Dapr applications to demonstrate the building block APIs and resiliency capabilities of Dapr.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages