A proof-of-concept to show how redis is a viable option for the following use case:
- distributed queue / job scheduler
- rate limited outgoing calls
[WORK IN PROGRESS]
docker-compose up
Queue a job:
curl --request POST \
--url http://localhost:8082/queueJob \
--header 'content-type: application/json' \
--data '{
"queueId": "airasia",
"name": "spec2",
"score": 2.1
}'
Poll for a job:
curl --request POST \
--url http://localhost:8081/pollJob/airasia
View analytics on http://localhost:3000
:
- Login with default credentials = admin/admin
- Select dashboard (Airasia execution rate)