All Projects → dapr → Samples

dapr / Samples

Licence: mit
Community driven repository for Dapr samples

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Samples

Go Sdk
Dapr SDK for go
Stars: ✭ 149 (+43.27%)
Mutual labels:  events, pubsub, state, binding
pg-pubsub
Reliable PostgreSQL LISTEN/NOTIFY with inter-process lock support
Stars: ✭ 50 (-51.92%)
Mutual labels:  events, pubsub
dry-events
Pub/sub system
Stars: ✭ 102 (-1.92%)
Mutual labels:  events, pubsub
observable ish
Observable state and events for browser and Flutter.
Stars: ✭ 26 (-75%)
Mutual labels:  events, binding
angular-PubSub
Angular 1.x implementation of the Publish–Subscribe pattern.
Stars: ✭ 32 (-69.23%)
Mutual labels:  events, pubsub
dead-simple
💀💡 Dead simple PubSub and EventEmitter in JavaScript
Stars: ✭ 21 (-79.81%)
Mutual labels:  events, pubsub
watermill-amqp
AMQP Pub/Sub for the Watermill project.
Stars: ✭ 27 (-74.04%)
Mutual labels:  events, pubsub
Dapr Demos
Collection of personal Dapr demos (bindings, state, pub/sub, service-to-service invocation)
Stars: ✭ 109 (+4.81%)
Mutual labels:  service, pubsub
Wisper
A micro library providing Ruby objects with Publish-Subscribe capabilities
Stars: ✭ 3,014 (+2798.08%)
Mutual labels:  events, pubsub
Pg Listen
📡 PostgreSQL LISTEN & NOTIFY for node.js that finally works.
Stars: ✭ 348 (+234.62%)
Mutual labels:  events, pubsub
Twitchlib
C# Twitch Chat, Whisper, API and PubSub Library. Allows for chatting, whispering, stream event subscription and channel/account modification. Supports .NET Core 2.0
Stars: ✭ 519 (+399.04%)
Mutual labels:  events, pubsub
background-service-lib
Essential classes for reliable background services.
Stars: ✭ 24 (-76.92%)
Mutual labels:  service, binding
evon
Fast and versatile event dispatcher code generator for Golang
Stars: ✭ 15 (-85.58%)
Mutual labels:  events, pubsub
Nginx Haskell Module
Nginx module for binding Haskell code in configuration files for great good!
Stars: ✭ 99 (-4.81%)
Mutual labels:  service, binding
micro-typed-events
The smallest, most convenient typesafe TS event emitter you'll ever need
Stars: ✭ 39 (-62.5%)
Mutual labels:  events, pubsub
dynamic-engine
Monitor events in the background on Android.
Stars: ✭ 24 (-76.92%)
Mutual labels:  events, service
Eventing
Open source specification and implementation of Knative event binding and delivery
Stars: ✭ 980 (+842.31%)
Mutual labels:  events, binding
Flare
Flare is a service that notify changes of HTTP endpoints
Stars: ✭ 110 (+5.77%)
Mutual labels:  service, pubsub
watermill-http
HTTP Pub/Sub for the Watermill project.
Stars: ✭ 16 (-84.62%)
Mutual labels:  events, pubsub
Remit
RabbitMQ-backed microservices supporting RPC, pubsub, automatic service discovery and scaling with no code changes.
Stars: ✭ 24 (-76.92%)
Mutual labels:  service, events

Dapr Samples

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 repository dapr/quickstarts.

Samples in this repository showcase Dapr 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

Sample Details
Twitter Sentiment Processor Code 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 the hello-world quickstart sample showing how to install initialize and use Dapr without having Docker in your local environment
Hello TypeScript This sample is a version of the hello-world quickstart sample showing how to use Dapr in a TypeScript project.
Docker compose sample Demonstrates how to get Dapr running locally with Docker Compose
Dapr, Azure Functions, and KEDA Shows Dapr being used with Azure Functions and KEDA to create a polygot Functions-as-a-Service application which leverages Dapr pub/sub
OAuth Authorization to external service Demonstrates how to inject a service principal OAuth Bearer Token within a Dapr service-to-service invocation to call secured APIs
Read Kubernetes Events Shows Dapr being used with the Kubernetes Input binding to watch for events in Kubernetes cluster
Batch File Processing This 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 APIM Dapr 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 Calendar Shows use of statestore, pubsub and output binding features of Dapr to roughly create a distributed version of a MVCS architecture application.

External samples

Sample Details
Dapr RetroPOS Dapr Retro Point of Sales is a sample of backend workflow based on microservices.
Dapr Traffic Control Simulated traffic-control system with speeding cameras using Dapr pub/sub and service-to-service invocation.

Sample maintenance

Each sample includes README.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 the contribution 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 sample contribution 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 a README.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 above samples table

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

Attribute Details
Dapr runtime version vX.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 command dapr --version

Example:

Attribute Details
Dapr runtime version v0.7.1
Language Go, C# (.NET Core), Node.js
Environment Local or Kubernetes

Code of Conduct

Please refer to our Dapr Community Code of Conduct

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].