Skip to content

Conversation

@mudssrali
Copy link
Owner

@mudssrali mudssrali commented Mar 27, 2022

In the previous PR #2 description , We described that there's some performance issues with the previous rate limiter approach. So what's the solution to gain performance without any third-party library? Simply ETS can help us to make concurrent request logger for clients at the moment.

We can refactor our rate limiter server to use a publicly accessible ETS table so clients can log their requests directly in ets, and our owning process can be responsible only for sweeping and cleaning up the table. This allows concurrent reads and writes against ETS without having to serialize calls through the single server.

Note:

read_concurrency and write_concurrency options set to true to optimize access

@mudssrali mudssrali added the enhancement New feature or request label Mar 27, 2022
@mudssrali mudssrali self-assigned this Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants