imjoy-team / imjoy-rpc

The RPC library used in ImJoy.
MIT License
23 stars 5 forks source link

[feature-request! Add rate-limiting convenience functions #555

Open jmetz opened 9 months ago

jmetz commented 9 months ago

When registering a service with hypha it would be useful (or perceived to be useful at least) to be able to rate-limit and/or max-call-count limit service-functions.

This helps avoid scenarios where a service function is accidentally called several times in a row, potentially causing OOM errors or similar problem on the service-provider's end.