https://github.com/ajsalemo/dapr-service-invocation-examples
Various scenarios using Dapr.
https://github.com/ajsalemo/dapr-service-invocation-examples
azure container-apps dapr dapr-sdk dotnet java javascript kubernetes microservice node php python sdk
Last synced: about 1 month ago
JSON representation
Various scenarios using Dapr.
- Host: GitHub
- URL: https://github.com/ajsalemo/dapr-service-invocation-examples
- Owner: Ajsalemo
- Created: 2022-08-16T18:08:03.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-05T20:25:49.000Z (about 3 years ago)
- Last Synced: 2024-11-07T20:15:54.773Z (11 months ago)
- Topics: azure, container-apps, dapr, dapr-sdk, dotnet, java, javascript, kubernetes, microservice, node, php, python, sdk
- Language: PHP
- Homepage:
- Size: 2.95 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dapr-service-invocation-examples
Various scenarios using Dapr and [Service Invocation](https://docs.dapr.io/developing-applications/building-blocks/service-invocation/service-invocation-overview/). This is designed to be ran locally on Kubernetes clusters and also deployed to Azure Container Apps with an ARM template.About this repo:
- Each language has a folder named `http` and `sdk`. The `http` folder uses an HTTP client with Dapr to call the "backend" API. The `sdk` folder uses the language specific Dapr SDK to call the "backend" API
- Each `http` and `sdk` folder has a `frontend` and `backend` folder. The "frontend" acts as the client and the "backend" acts as the API.
- Each `frontend` and `backend` folder has a `Dockerfile`. Build this to run the examples.
- The examples are designed so that the `frontend` calls the `backend` of the respective sample.
- To run this locally, build the Docker image and use the `local` folder to deploy to a local Kubernetes cluster
- To run this on Azure, build the Docker image and deploy this with the commands in the `deploy` folder -> `commands.txt` file.SDKs:
- [Dotnet](https://docs.dapr.io/developing-applications/sdks/dotnet/)
- [Python](https://docs.dapr.io/developing-applications/sdks/python/)
- [Java](https://docs.dapr.io/developing-applications/sdks/java/)
- [PHP](https://docs.dapr.io/developing-applications/sdks/php/)
- [JavaScript](https://docs.dapr.io/developing-applications/sdks/js/)