nirum-lang/nirum

Make a HTTP request with exponential backoff and jitter

kanghyojun opened this issue · 2 comments

Making multiple HTTP requests at once could make a similar effect to DoS attack. So it is helpful to keep service availability that HttpTransport support exponential backoff and jitter when making an HTTP request.

A transport implementation is impossible to determine which methods can be retried (i.e., are idempotent) and which methods can't. This should be determined by a programmer who implements the method, and probably annotated as well.

We may need to file a new issue for introducing a method annotation to mark it as idempotent first.