how do i implement rate limiting api access? #1414
Unanswered
dragonballa
asked this question in
Q&A
Replies: 1 comment
-
Hi, by "api endpoint" do you mean the CRUD API generated by ZenStack? ZenStack currently doesn't have any rate limiting feature and I think it's best handled by framework middleware, e.g. https://www.npmjs.com/package/express-rate-limit if you're using Express. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
say only premium users can access an api endpoint via read (100/hour)
free/anonymous users can access it via 10/hour
enterprise users can access it via [custom #]/hour
how would you go about implementing this? seems like zmodel is the perfect fit but so far all the examples show row and field based rules.
do i create another Rules tables to keep track and access it via dot operator when setting the rule at the model level?
Beta Was this translation helpful? Give feedback.
All reactions