Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 c_src
Octocat-spinner-32 rel
Octocat-spinner-32 src
Octocat-spinner-32 support
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Makefile.in
Octocat-spinner-32 Readme
Octocat-spinner-32 config.guess
Octocat-spinner-32 config.sub
Octocat-spinner-32 configure
Octocat-spinner-32 configure.ac
Octocat-spinner-32 install-sh
Octocat-spinner-32 metronomed.in
Octocat-spinner-32 rebar
Octocat-spinner-32 rebar.config
Readme
tcp/udp: 9528

 +---------+            +---------+                     +-----------+
 | Client  |            | Server  |                     | Metronome |
 +---------+            +---------+                     +-----------+
      |                      |                                |
      | Service Request      |                                |
      |--------------------->|                                |
      |                      |                                |
      |                      | Query user request times       |
      |                      |------------------------------->|
      |                      |                                |
      |                      |           return request times |
      |                      |<-------------------------------|
      |                      | /--------------                |
      |                      | | check quota |                |
      |                      | --------------/                |
      |                      |                                |
      |       accept or deny |                                |
      |<---------------------|                                |
      |                      |                                |

input: key ttl idstr<\n>
result: count idstr

-------------------------------------------
> uid=123,api=run 3 requestid=100
< 1 requestid=100

> uid=123,api=run 3 requestid=101
< 2 requestid=101

> uid=123,api=run 3 requestid=102
< 3 requestid=102

> uid=123,api=run 3 requestid=103
< 4 requestid=103

... 3 seconds...

> uid=123,api=run 3 requestid=104
< 1 requestid=104
Something went wrong with that request. Please try again.