Skip to content
Discussion options

You must be logged in to vote

I was also just thinking about this. There's a few use cases for me:

  • Sign-up invitation codes. I don't want a user to try and brute force codes.
  • Preventing storage abuse. Users will be uploading frequent small files to storage, but they should adhere to a sensible rate according to my business logic.

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

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@srvmux
Comment options

@quicksnap
Comment options

@inian
Comment options

@quicksnap
Comment options

Answer selected by srvmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants