Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dapr 101: start building distributed applicatio...

Dapr 101: start building distributed applications with ease

Slides for my session at AppDevConNL about using Dapr to build distributed applications.

Demos: https://github.com/dapr/quickstarts
Dapr Discord: http://bit.ly/dapr-discord

Marc Duiker

May 12, 2023
Tweet

More Decks by Marc Duiker

Other Decks in Programming

Transcript

  1. 3

  2. 5

  3. 7 E-commerce system State Management Email Payment Front-end Shipping Checkout

    Inventory Cart Internet Queue I just want to trace my calls end-to-end. How do I encrypt calls with ongoing cert rotation? How do applications discover and call each other? How do I handle failed calls and perform retries? How do I secure access to my data layer? How do I handle state conflicts from multiple apps? How do I measure latency on my database? How do I orchestrate business logic transactions? How do I send messages to many applications? Developer challenges
  4. 13 Service invocation State Management Publish & subscribe Bindings (input

    & output) Actors Secret Stores Configuration Observability Workflows Distributed Lock Building block APIs
  5. 15 POST http:// localhost:3500/v1.0/invoke/cart/method/order GET http:// localhost:3500/v1.0/state/inventory/item67 POST http:// localhost:3500/v1.0/publish/order

    GET http:// localhost:3500/v1.0/secrets/vault/password42 POST http:// localhost:3500/v1.0-alpha1/workflows/dapr/businessprocess/1234/start HTTP/gRPC Dapr API App
  6. 17 10th largest CNCF project Submitted to CNCF Nov 2021

    Incubation maturity level www .cncf.io/projects/dapr/ Dapr project
  7. 18

  8. 19 20.5K GitHub stars 2.5K Contributors +1M Docker pulls /

    month 290k Unique doc views / month 5.4k Discord members 19
  9. 22 Bindings Configuration State Management Publish & subscribe Observability Actors

    Secret Stores Workflows Distributed Lock Components AWS DynamoDB Azure CosmosDB GCP Firebase Redis Cassandra AWS SQS Azure Service Bus GCP Pub/Sub Redis RabbitMQ AWS Secrets mngr Azure KeyVault GCP Secret mngr HashiCorp Vault Kubernetes Secrets AWS DynamoDB Azure CosmosDB Redis MongoDB Postgres AWS S3 Azure Storage GCP Storage Twilio Kafka Jeager Zipkin Prometheus App Insights Datadog Redis Redis Azure App Configuration Dapr Workflow Building Block APIs
  10. 24 Sidecar App CosmosDB metadata: name: mystorage spec: type: state.azure.cosmosdb

    metadata: - name: value: state.save() state.get() yaml
  11. 25 Redis metadata: name: mystorage spec: type: state.redis metadata: -

    name: value: Sidecar App state.save() state.get() yaml
  12. 30