Search

AccessControl

This document describes how to control API call volume with block coding.
Index

Access Control Block

1) Rate Limit

Control the request limits of the API.
Call API as much as count for period (second).
After the number of calls is exceeded, a LimitExceedException occurs.

2) Throttle

It controls calls to occur at regular intervals even if API requests are made several times.
Function
Explanation
DataType
Default
capacity
Maximum number of tokens that can be created
int
-
count
The number of tokens to create
int
-
period
Token refresh cycle (second)
int
-
key
key to manage the state of the token(null, string type) - null : Manage token state for each API - string : Create and manage a separate key with the given string (bizUnit unit)
string
null
expiration
Duration of key creation (managed by Redis) If the key expires, the token creation state is initialized.
int
-
blocking
Set whether to retry if no token exists (bool type) - null, false : 429 Too many request return without waiting - true : wait for the token to be created and try again
boolean
null