Rate Limit in Dgraph

Hi Team,

Is there a rate limit feature in Dgraph?

1 Like

Hi abhijit-kar , currently there is no rate limiting in dgraph.
We are working on a RFC for it and will have it soon in graphql though.

Also can you please share scenario you want to use it in, so that we can get more idea of it.

3 Likes

Cool. I got it.

I am making a website for fun & to learn.
I wanted to know the best way to stop user from spamming like & dislike button or any other parts of the website.

So rate limiting + maybe some front end Throttling / Debounce is what I had in mind.

Thanks. we will discuss your use case internally.

Thank You.

For reference, this is what happens if you try to keep clicking on up-vote buttons more than 2 times in Reddit:

UI checks, like Throttling / Debounce, are great but in case someone finds a way around it …

ok, So in that case you require throttling from dgraph side.

It’s just a simple way to prevent add/update/query/delete ops from being called more than X times per second. It should be pretty trivial to add this, building off of the @auth directive.