How can you throttle calls server side?

前端 未结 2 426
逝去的感伤
逝去的感伤 2021-01-03 10:49

I know client side _underscore.js can be used to throttle click rates, but how do you throttle calls server side? I thought of using the same pattern but unfortunately _thro

2条回答
  •  抹茶落季
    2021-01-03 11:43

    there is not built in support for this currently in meteor, but its on the roadmap https://trello.com/c/SYcbkS3q/18-dos-hardening-rate-limiting

    in theory you could use some of the options here Throttling method calls to M requests in N seconds but you would have to roll your own solution

提交回复
热议问题