Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Example - Invoke a service

This example utilizes a receiver and a caller for the invoke_method functionality.

Note: Make sure to use the latest proto bindings

Pre-requisites

Install requirements

You can install dapr SDK package using pip command:

pip3 install dapr

Also install Flask package:

pip3 install Flask

Run the example

To run this example, the following code can be utilized:

Start the receiver:

dapr run --app-id=invoke-receiver --app-port=8088 --app-protocol http -- python3 invoke-receiver.py

Start the caller:

dapr run --app-id=invoke-caller -- python3 invoke-caller.py

Cleanup

dapr stop --app-id invoke-receiver