|
is there a way to timeout an authenticated user and flag them if they make too many insert or update requests in a short period of time? how would we implement rate limiting? |
Answered by
quicksnap
May 16, 2021
Replies: 1 comment 4 replies
|
I was also just thinking about this. There's a few use cases for me:
I could imaging a userland solution: When inserts happen, you use a postgres trigger to write up a tally somewhere. Similarly, have a before-trigger to check the tally. But, seems overkill to track this stuff in the DB. @kiwicopple mentioned this in a HN thread 9 months ago: https://news.ycombinator.com/item?id=24073571 |
4 replies
Answer selected by
srvmux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was also just thinking about this. There's a few use cases for me:
I could imaging a userland solution: When inserts happen, you use a postgres trigger to write up a tally somewhere. Similarly, have a before-trigger to check the tally. But, seems overkill to track this stuff in the DB.
@kiwicopple mentioned this in a HN thread 9 months ago: https://news.ycombinator.com/item?id=24073571