Skip to content

diagrid-labs/dapr-building-block-apis

 
 

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

Table of Contents

Prerequisites

Ensure you have these installed on your machine:

  • .NET 8

  • 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 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 slide show.

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

Diagrid Conductor

Diagrid Conductor is a free tool developers can use to visualize, troubleshoot, and optimize Dapr workloads on Kubernetes. It includes an Advisor that provides recommendations on how to improve the reliability of your Dapr applications.

Conductor Advisor

Conductor also comes with two builders to generate Dapr component files and resiliency policies so you don't have to figure out the correct yaml schema yourself.

Conductor Component Builder

Conductor Resiliency Builder

Resources

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • CSS 51.7%
  • C# 46.6%
  • Shell 1.7%