Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
geekyme committed May 15, 2020
1 parent ba646c3 commit 23d0e13
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Redis-backed Distributed Job Queue w/ Rate Limiter

[WORK IN PROGRESS]

- Pending addition of [Rate Limiter](https://www.javadoc.io/doc/org.redisson/redisson/3.10.6/org/redisson/api/RRateLimiter.html)
- Pending addition of [Grafana](https://grafana.com/docs/grafana/latest/installation/docker/) to check the outgoing rates
- Pending addition of [pumba](https://github.com/alexei-led/pumba) to simulate failures
- Pending addition of [karate](https://intuit.github.io/karate/karate-gatling/) for load tests

### 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
```

0 comments on commit 23d0e13

Please sign in to comment.