gobuffalo / buffalo

Rapid Web Development w/ Go
http://gobuffalo.io
MIT License
8.07k stars 573 forks source link

feature: Support Rate Limiting HTTP Requests? #2369

Closed itildesk closed 1 year ago

itildesk commented 1 year ago

Description

just like title

Additional Information

No response

sio4 commented 1 year ago

A feature request with a single line of description is not acceptable. All people have their own viewpoints and think differently with the same sentence. It could be better if you explain your points of view, and the issue you want to be addressed with example situations.

Anyway, rate-limiting is not a simple topic and it could be implemented differently for each size of service, the aim of the implementation, and the topology/architecture of the whole service. Commonly, rate-limiting is implemented at the proxy layer if the purpose of limiting is just to save backend applications, but sometimes the limiting could be implemented per user which is not the area of the framework.

One possible approach for rate-limiting is using a proxy with rate limiting feature such as http://nginx.org/en/docs/http/ngx_http_limit_req_module.html

I will keep this issue open for now, please update your issue description with your actual requirements then we can consider if the detailed request is acceptable or not.

itildesk commented 1 year ago

In fact, our program is running on the LAN, only start a service process, not any proxy,so we hope it as a Built -in component

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 30+7 days with no activity.