Welcome to the Azure Samples repository for Dapr Microservices! This repository contains a collection of sample microservices built to showcase best practices and patterns for developing distributed systems using Dapr.
Dapr is an open-source, event-driven runtime that simplifies building microservices and distributed applications. These sample microservices demonstrate how to leverage Dapr's capabilities to address common concerns such as state management, pub/sub, service-to-service communication, and more.
To get started with these Dapr microservices, follow the steps below:
-
Prerequisites:
-
Clone the Repository:
git clone https://github.com/Azure-Samples/Dapr-Microservices.git cd Dapr-Microservices
-
Run Microservices:
Navigate to the specific microservice's directory and use the Dapr CLI to run them. For example, to run the Inventory Management microservice:
cd inventory-management dapr run --app-id inventory-service --app-port 5050 -- dotnet run
Each microservice may have specific instructions provided in its directory.
-
Explore and Test:
Explore the sample microservices, their endpoints, and communication patterns. Use the provided API documentation or README files in each microservice directory to learn how to interact with them.
-
Learn from Samples:
These samples showcase how to use Dapr's features like Pub/Sub, state management, service invocation, and more. Examine the code, configuration, and documentation to understand how to implement Dapr in your own microservices.
- Description: Manages product inventory and handles product orders.
- Features: Pub/Sub for ordering and returning materials, inventory management.
- API: API Documentation
See CONTRIBUTING.md for more information about contribution guidelines.