GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.
This issue does not occur if I remove the 10% rate limit.
Question:
Could you help me understand why only 2 replay events are being triggered in the middleware when the rate limit is applied? How can this be resolved to ensure all replay events are triggered correctly?
Issue Description: I am currently using a simple server and middleware for testing with Gor. The server code is as follows:
The middleware is based on a sample from the Gor documentation:
I run Gor with the following command:
When I send 100 requests per second using Apache Bench:
I can confirm that the target server receives exactly 10 requests, as expected due to the 10% rate limit:
However, in the middleware, only 2 replay events are triggered:
This issue does not occur if I remove the 10% rate limit.
Question:
Could you help me understand why only 2 replay events are being triggered in the middleware when the rate limit is applied? How can this be resolved to ensure all replay events are triggered correctly?