This is an example of provider with Rust Celery and Warp which will get the complete result task from Sled database.
-
Install Rabbitmq
-
Clone the project:
git clone https://github.com/dancespiele/celery_provider.git
-
Inside of the project directory add the .env file with the path of you Sled database (notice that it will be sharing with the consumer):
SLED_URL=[YOUR SLED PATH]
AMPQ_ADDR=[YOUR AMPQ URL]
-
Execute
cargo run
-
Run the Consumer example example to see all the complete flow
-
Execute this curl
curl --location --request GET 'http://localhost:3000/hello' \
--header 'Content-Type: application/json'
If you liked, please help me to make more different examples in rust with:
- BAT rewards in case that you use Brave Browser
- Github Sponsors
- Burst coins to the address BURST-DPN6-2AT3-FCRL-9BBKG
Celery consumer is Apache-2.0 licensed