Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Community driven repository for Dapr samples

License

NotificationsYou must be signed in to change notification settings

dapr/samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: The Dapr samples have been recently reorganized. Samples that are aimed for newcomers and are meant to help users get started quickly with Dapr have been migrated to a separate repositorydapr/quickstarts.

Samples in this repository showcaseDapr capabilities using different languages and address wide array of common scenarios. Some focus on specific usage patterns or particular Dapr capability while others are end-to-end demos leveraging several Dapr building blocks and capabilities.

If you are new to Dapr, you may want to review following resources first:

Note, these samples are maintained by the Dapr community and are not guaranteed to work properly with the latest Dapr runtime version.

Samples in this repository

SampleDetails
Twitter Sentiment ProcessorCode sample used to demo Dapr during Microsoft's Build 2020 conference showing a polyglot distributed application which performs sentiment processing for tweets
Hello world slim (no Docker dependency)This sample is a version of thehello-world quickstart sample showing how to install initialize and use Dapr without having Docker in your local environment
Hello TypeScriptThis sample is a version of thehello-world quickstart sample showing how to use Dapr in a TypeScript project.
Docker compose sampleDemonstrates how to get Dapr running locally with Docker Compose
Dapr, Azure Functions, and KEDAShows Dapr being used with Azure Functions and KEDA to create a polygot Functions-as-a-Service application which leverages Dapr pub/sub
Middleware OAuth to Google APIs - InteractiveDemonstrates use of Dapr middleware to enable OAuth 2.0 authorization and inject client secrets for Google APIs.
Middleware OAuth to Microsoft and AAD APIs - Non InteractiveDemonstrates use of Dapr middleware to enable OAuth 2.0 authorization and inject client secrets for Microsoft and Azure Active Directory apps.
Read Kubernetes EventsShows Dapr being used with the Kubernetes Input binding to watch for events in Kubernetes cluster
Batch File ProcessingThis sample demonstrates an end-to-end sample for processing a batch of related text files using microservices and Dapr. Through this sample you will learn about Dapr's state management, bindings, Pub/Sub, and end-to-end tracing.
Dapr integration in Azure APIMDapr configuration in Azure API Management service using self-hosted gateway on Kubernetes. Illustrates exposing Dapr API for service method invocation, publishing content to a Pub/Sub topic, and binding invocation with request content transformation.
Distributed CalendarShows use of statestore, pubsub and output binding features of Dapr to roughly create a distributed version of a MVCS architecture application.
Hello Service FabricShows use of statestore, pubsub and service invocation in a Service Fabric environment running the Dapr sidecar as a guest executable.
Pub-sub routingDemonstrates how to use Dapr to enable pub-sub applications with message routing.
Distributed Calculator with Knative ServingDemonstrates how to use Dapr and Knative Serving using distributed calculator from quickstarts.
commercetools GraphQL sample output bindingConnects to commercetools, allowing you to query or manipulate a commercetools projects using a provided GraphlQL query.
WebAssembly MiddlewareDemonstrates how to serve HTTP responses directly from the dapr sidecar using WebAssembly.
Workflow + external endpoint invocationDemonstrates how to use the Dapr Workflow API to coordinate an order process that includes an activity which uses service invocation for non-Dapr endpoints.
Workflow + multi-app microservice in PythonDemonstrates how to use the Dapr Workflow Python SDK to coordinate an order process across multiple dapr-enabled microservices.
Outbox in .NETDemonstrates how to use the outbox transactions with Redis and MySql statestores and Redis as the message broker
Consuming Kafka messages without CloudEventsDemonstrates how to integrate a Kafka producer using the Confluent Kafka SDK with a Dapr-powered consumer in .NET applications
AWS EKS Pod IdentityDemonstrates how to set up Dapr with AWS EKS Pod Identity for accessing AWS Secrets Manager

External samples

SampleDetails
Dapr RetroPOSDapr Retro Point of Sales is a sample of backend workflow based on microservices.
Dapr Traffic ControlSimulated traffic-control system with speeding cameras. This sample features all the Dapr building-blocks. This is also the sample application used in the bookDapr for .NET Developers.
Dapr ExamplesExample usage of Dapr in Golang. This repository contains examples about to use of state store, access management, pubsub and subscription.
Java Pub/Sub SampleDemonstrate a pub/sub messaging architecture using Dapr for a Java application running in a Kubernetes cluster.
eShop on DaprA sample .NET Core E-Commerce application based oneShopOnContainers, powered by Dapr.

Sample maintenance

Each sample includesREADME.md which provides information about the validated versions of Dapr for that sample.

If you would like to have a sample updated or better yet, update it yourself to a newer version of Dapr, please see thecontribution guide to learn more about opening issues and submitting pull requests to this repository.

Note, over time, for maintainability reasons, some samples may be removed from this repository.

Sample contribution

If you want to contribute a sample to this repo, please see the samplecontribution guide for details on the PR process.

Samples should follow these high-level guiding principles:

  • Sample should have a meaningful name that helps users understand what this sample is about
  • Sample code should be complete (i.e. no major code additions should be needed to make the sample work)
  • Each sample should include aREADME.md file clearly explaining what the sample does and how to run it including prerequisites. This file should also include details on the Dapr core version this sample is compatible with (see below).
  • Highly recommended:
    • architecture diagrams of the sample application
    • scripts and automation to allow users to easily run samples which require complex setup and multiple steps to run

Along with the sample code and README, samples should be listed in this page in the abovesamples table

Sample info section at the top of the main sample README should follow the following template:

AttributeDetails
Dapr runtime versionvX.X
Language[Languages used in the sample code]
Environment[Environment name]

Note: If you are not sure what Dapr runtime version you are running, use the Dapr CLI commanddapr --version

Example:

AttributeDetails
Dapr runtime versionv1.12.0
LanguageGo, C# (.NET Core), Node.js
EnvironmentLocal or Kubernetes

Code of Conduct

Please refer to ourDapr Community Code of Conduct


[8]ページ先頭

©2009-2025 Movatter.jp