Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 886 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 886 Bytes

Redis-backed Distributed Job Queue w/ Rate Limiter

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]

  • Pending addition of karate for load tests
  • Pending addition of pumba to simulate failures

Setup

docker-compose up

Test

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:

  1. Login with default credentials = admin/admin
  2. Select dashboard (Airasia execution rate)