Glossary

Fixed-window rate limiting

Fixed-window rate limiting — a term used across the Credicorp public-API documentation. The definition below is written for engineers integrating the /public/v1 ring.

2 min read

60 sSlot length
resetCounter clears each slot

What it is

A fixed-window rate limiter divides time into equal slots and counts requests within each. When a slot’s count reaches the cap, further requests are rejected until the next slot begins, at which point the counter resets to zero.

On the public ring

The Credicorp public ring uses a fixed 60-second window with a cap of 60 requests per IP per route. It is simple and predictable: you know the reset boundary from the Retry-After header. The trade-off of any fixed window is a possible burst at the slot boundary; the public ring’s modest cap makes that a non-issue in practice.

Frequently asked questions

How is fixed-window different from a sliding window?

A fixed window resets on hard boundaries; a sliding window measures the trailing N seconds continuously. The public ring uses fixed windows for simplicity and predictability.

Funding for UK limited companies

Credicorp lends to your company, not to you personally — short-term working capital with no personal guarantee. See what your business could access.