Skip to content

Conversation

@vladvildanov
Copy link
Collaborator

Pull Request check-list

Please make sure to review and check all of these items:

  • Do tests and lints pass with this change?
  • Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Is there an example added to the examples folder (if applicable)?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.

Description of change

This PR introduces new routing and response aggregation policies for commands. Existing policies was mapped to new one to keep backward-compatibility. Keyless commands now will be randomly distributed across shards for better load balancing.

By default static policies applied for search commands and override one provided by COMMAND. Dynamic policy resolver implementation is added and might be applicable if COMMAND tips wants to be respected

vladvildanov and others added 4 commits October 27, 2025 14:33
* Added poilcy resolution method

* Moved main command proceessing on top

* Fixed return type and keyless detection

* Added Dynamic and Static policies

* Added coverage for policy resolvers

* Removed all policies except search (phase 1)

* Applied comments
* Added poilcy resolution method

* Moved main command proceessing on top

* Fixed return type and keyless detection

* Added Dynamic and Static policies

* Added coverage for policy resolvers

* Applied request policies

* Removed all policies except search (phase 1)

* Policy applied for normal and pipeline mode

* Added assertion with core command

* Applied comments

* Renamed method
* Added poilcy resolution method

* Moved main command proceessing on top

* Fixed return type and keyless detection

* Added Dynamic and Static policies

* Added coverage for policy resolvers

* Applied request policies

* Removed all policies except search (phase 1)

* Policy applied for normal and pipeline mode

* Added assertion with core command

* Applied comments

* Added async support for Request/Responce policies

* Fixed method name

* Updated async to sync
@vladvildanov vladvildanov added the feature New feature label Nov 4, 2025
Copy link
Collaborator

@petyaslavova petyaslavova left a comment

Choose a reason for hiding this comment

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

LGTM.

@vladvildanov vladvildanov merged commit 6bbc5c7 into master Nov 4, 2025
72 of 73 checks passed
@vladvildanov vladvildanov deleted the feat/request-response-policies branch November 4, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants