Skip to content

HTTP calls experience delay due to rate limiting #6363

@jakamobiii

Description

@jakamobiii

Software Versions

OS: Linux
JVM: Oracle Corporation 1.8.0_161 AMD64
Version: 4.8.0

Expected behavior

When a Java-tron API call reaches the rate limit, it should immediately return to inform the client that it has been rate-limited, rather than waiting for an extended period.

Actual behavior

When the Java-tron API call reaches the rate limit, it will enter a queue waiting state and will not return until the items are processed. This will cause the request delay time to be uncontrollable, and the delay time may be very long in high-concurrency scenarios.

Frequency

100% appearance

Steps to reproduce the behavior

  1. Limit the rate of a certain interface. You can set a smaller threshold to facilitate problem reproduction, as shown below.
Image
  1. After the first request, the system will enter the rate limit state. When the second request is made, the result will not be returned for a rather long time, as shown below.
Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

To Do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions