Skip to content

Conversation

ofekshenawa
Copy link
Owner

@ofekshenawa ofekshenawa commented May 14, 2025

Introduce internal/routing/policy.go:

  • RequestPolicy enum covering: default, all_nodes, all_shards,
    multi_shard and special – exactly matching the new Redis
    request_policy tip.
  • ResponsePolicy enum with aggregation / success-criteria values.
  • CommandPolicy struct that bundles both enums for fast lookup.
  • String() and Parse*() helpers for round-tripping between raw
    COMMAND tips and the enums.

@ofekshenawa ofekshenawa merged commit 9e4369a into load-balance-search-commands-to-shards May 14, 2025
3 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.

1 participant