Skip to content

Commit

Permalink
doc: sequence diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjoly committed Oct 10, 2017
1 parent 2ff95ca commit ef9d42e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ $ npm install
$ npm test
```

## Design

![sequence diagram](docs/seq-diagram.svg)

## Example of use

Here's a minimal example of use:
Expand Down
13 changes: 13 additions & 0 deletions docs/seq-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/seq-diagram.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# https://bramp.github.io/js-sequence-diagrams/#message

Client->Qyu: push(job)
Client->Qyu: start()
Qyu->RateLimiter: canRunMore()
Qyu->RateLimiter: jobStarted()
Qyu->Qyu: process(job)
RateLimiter-->Qyu: ⚡stats
Qyu-->Client: ⚡stats
Qyu->RateLimiter: jobEnded()
Qyu-->Client: ⚡️done|error
RateLimiter-->Qyu: ⚡drain
Qyu-->Client: ⚡drain
Client->Qyu: pause()

0 comments on commit ef9d42e

Please sign in to comment.