How would I limit upload speed from the server in node.js?

后端 未结 3 2029
清酒与你
清酒与你 2020-12-24 10:14

How would I limit upload speed from the server in node.js?

Is this even an option?

Scenario: I\'m writing some methods to allow users to automated-ly upload

3条回答
  •  爱一瞬间的悲伤
    2020-12-24 10:58

    Instead of rolling your own, the normal way to do this in production, is to let your load balancer or entry server throttle the incoming requests. See http://en.wikipedia.org/wiki/Bandwidth_throttling. It's not typically something an application needs to handle itself.

提交回复
热议问题