Skip to content

Commit 4d9b1bf

Browse files
committed
Merge branch 'add-rate-limiter-exercise' of github.com:andreatanky/java into add-rate-limiter-exercise
2 parents 6100e11 + 7907757 commit 4d9b1bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

exercises/practice/rate-limiter/.docs/instructions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Instructions
2+
13
Your task is to build a fixed‑window rate limiter.
24

35
Imagine a single server connected to one or more clients.
@@ -13,7 +15,8 @@ Once the window resets, the allowance refreshes for the next window.
1315
Each client is tracked separately, so another client can make requests within that same period.
1416

1517
For example, consider a rate limiter configured to limit 2 requests per 10 seconds per client.
16-
Lets say client A sends a request.
18+
Lets say a client sends a request:
19+
1720
- Being its first request, the request is permitted.
1821
- A second request within 10 seconds after the first one is also permitted.
1922
- However, further requests after that would be denied _until_ at least 10 seconds has elapsed since the first request.

0 commit comments

Comments
 (0)