Initial questions about rate limiting
Unanswered
Spectacled bear posted this in #help-forum
Spectacled bearOP
I'd like to know things about rate limiting a next js app
1. How important is rate limiting feature for a small to middle sized app?
2. When should I implement rate limiting? Should it be from the beginning of development?
3. What services provide rate limiting feature?
4. Do you apply rate limiting to all endpoints, or only to the necessary ones?
1. How important is rate limiting feature for a small to middle sized app?
2. When should I implement rate limiting? Should it be from the beginning of development?
3. What services provide rate limiting feature?
4. Do you apply rate limiting to all endpoints, or only to the necessary ones?
1 Reply
Sloth bear
1. Depends on your app, the amount of traffic and what your most expensive operations are
2. Depends on your traffic, it’s generally not a bad idea to implement early and adjust the window/limits as you see fit.
3. You can self host redis, or upstash redis is a good option to get started
4. Definitely do it for the most expensive and or costly endpoints, but it’s also not a bad idea to have different configurations for different endpoints
2. Depends on your traffic, it’s generally not a bad idea to implement early and adjust the window/limits as you see fit.
3. You can self host redis, or upstash redis is a good option to get started
4. Definitely do it for the most expensive and or costly endpoints, but it’s also not a bad idea to have different configurations for different endpoints