Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Input and Output Bindings Example

This is a simple example that demonstrates Dapr's binding capabilities. To implement input bindings in your rust application, you need to implement AppCallback server for subscribing to events. Specifically, the following two methods need to be implemented for input bindings to work:

  1. list_input_bindings - Dapr runtime calls this method to get list of bindings the application is subscribed to.
  2. on_binding_event - Defines how the application handles the input binding event.

Note: Make sure to use latest version of proto bindings.

In order to have both examples working with the same binding configuration ServiceBus was used here. If you don't have it available you can change to a binding that works for both Input and Output from this list

Running

  1. To run the example we need to first build the examples using the following command:
cargo build --examples

2Run a kafka container

docker run -p 9092:9092 apache/kafka:3.7.1
  1. Run the multi-app run template (dapr.yaml)
dapr run -f .