Skip to content

RUBY-3798 Backpressue examples#3020

Closed
comandeo-mongo wants to merge 1 commit intomongodb:masterfrom
comandeo-mongo:3798
Closed

RUBY-3798 Backpressue examples#3020
comandeo-mongo wants to merge 1 commit intomongodb:masterfrom
comandeo-mongo:3798

Conversation

@comandeo-mongo
Copy link
Copy Markdown
Contributor

No description provided.

@comandeo-mongo comandeo-mongo changed the title 3798 RUBY-3798 Backpressue examples Apr 16, 2026
@comandeo-mongo comandeo-mongo marked this pull request as ready for review April 16, 2026 08:07
@comandeo-mongo comandeo-mongo requested a review from a team as a code owner April 16, 2026 08:07
@comandeo-mongo comandeo-mongo requested review from Copilot and jamis April 16, 2026 08:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new integration spec intended to illustrate/test client backpressure retry behaviors (overload labeling, exponential backoff, and a simple retry loop).

Changes:

  • Introduces system_overloaded_error?, calculate_exponential_backoff, and with_retries helpers.
  • Adds RSpec examples validating overload label detection, backoff bounds, and retry behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread spec/integration/backpressure_examples_spec.rb Outdated
Comment thread spec/integration/backpressure_examples_spec.rb Outdated
Comment thread spec/integration/backpressure_examples_spec.rb Outdated
Comment thread spec/integration/backpressure_examples_spec.rb Outdated
Comment thread spec/integration/backpressure_examples_spec.rb Outdated
@comandeo-mongo
Copy link
Copy Markdown
Contributor Author

We do not really need tests for the examples.

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.

2 participants