Skip to content

Conversation

@filipecosta90
Copy link
Collaborator

@filipecosta90 filipecosta90 commented Apr 4, 2025

This PR introduces optional rate limiting for publisher routines in publish and spublish modes.

Key Changes

  • Added --rps flag to control the maximum number of published messages per second (requests per second).
  • Default behavior remains unchanged: if --rps=0, the publisher sends at the maximum possible rate (unthrottled).

Example Usage

# Limit publisher to 10k msgs/sec with default burst
./pubsub-sub-bench --mode=publish --rps=10000

@filipecosta90 filipecosta90 merged commit bde98f8 into master Apr 4, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants