## **User description**
The PR enables a fixed window rate limiter from behind the dev build
tag.
___
## **Type**
enhancement
___
## **Description**
- Removed the `EnableFixedWindowRateLimiter` setting from
`config/development.go` as it seems to be restructured.
- Introduced `EnableFixedWindowRateLimiter` in `config/rate_limit.go` to
centralize rate limiting configurations.
- Added a string output for when the fixed window rate limiter is
enabled, improving debuggability and monitoring.
___
## **Changes walkthrough**
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Configuration changes
</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>development.go</strong><dd><code>Remove Fixed Window
Rate Limiter Setting from Development Config</code></dd></summary>
<hr>
config/development.go
- Removed the `EnableFixedWindowRateLimiter` setting.
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6253/files#diff-d2253d9377e5163d9de068a2df71738383fb97e0b07b64482404a83610cd53b8">+0/-3</a>
</td>
</tr>
</table></td></tr><tr><td><strong>Enhancement
</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>rate_limit.go</strong><dd><code>Introduce Fixed Window
Rate Limiter Configuration</code>
</dd></summary>
<hr>
config/rate_limit.go
<li>Added <code>EnableFixedWindowRateLimiter</code> setting to enable
fixed window rate <br>limiting.<br> <li> Added a string representation
for when the fixed window rate limiter <br>is enabled.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6253/files#diff-375bf116f8d6527c50d7591d7cb01e8f821b22df4a4ca18b4da4c6f0d526f18e">+7/-0</a>
</td>
</tr>
</table></td></tr></tr></tbody></table>
___
> ✨ **PR-Agent usage**:
>Comment `/help` on the PR to get a list of all available PR-Agent tools
and their descriptions
---------
Co-authored-by: Tit Petric <[email protected]>
User description
The PR enables a fixed window rate limiter from behind the dev build tag.
Type
enhancement
Description
EnableFixedWindowRateLimitersetting fromconfig/development.goas it seems to be restructured.EnableFixedWindowRateLimiterinconfig/rate_limit.goto centralize rate limiting configurations.Changes walkthrough
development.go
Remove Fixed Window Rate Limiter Setting from Development Configconfig/development.go
EnableFixedWindowRateLimitersetting.rate_limit.go
Introduce Fixed Window Rate Limiter Configurationconfig/rate_limit.go
EnableFixedWindowRateLimitersetting to enable fixed window ratelimiting.
is enabled.