Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rate limit for production? #1

Open
Yukaii opened this issue Jul 9, 2020 · 5 comments
Open

Add rate limit for production? #1

Yukaii opened this issue Jul 9, 2020 · 5 comments

Comments

@Yukaii
Copy link
Contributor

Yukaii commented Jul 9, 2020

@yoyo930021
Copy link
Contributor

加好 加滿

@yoyo930021
Copy link
Contributor

有一個點是要加這個
就必須上 Redis 這個依賴
有點不想上它

@Yukaii
Copy link
Contributor Author

Yukaii commented Jul 20, 2020

https://github.com/koajs/ratelimit#with-a-memory-driver

發現他有 in memory 的

@Yukaii
Copy link
Contributor Author

Yukaii commented Jul 21, 2020

不過等到伺服器真的造成負擔再加應該比較好 XD 過早最佳化

@yoyo930021
Copy link
Contributor

其實還好的點是 它沒有 log 沒有 IO
一切都是花 CPU 算 沒有什麼上的必要 XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants