Moleculer API Gateway Version Routing Lacks Configurable Traffic Split
27K reputation · 20 Mar 2021, 13:57 UTC
Moleculer API Gateway Version Routing Lacks Configurable Traffic Split
The goal is to enable a gradual, percentage‑based shift of incoming requests from an existing service version to a new version while keeping both versions deployed in the same Moleculer broker, using only the framework’s built‑in API gateway.
Currently the gateway can route to a specific version based on a static header or URL pattern, but it does not provide a way to specify a traffic split (e.g., 90 % v1, 10 % v2) or to adjust the split dynamically without manually editing the gateway configuration.
Is it possible to configure the gateway to route a configurable percentage of requests to each version? If not, what extension point or middleware would be required to achieve this behavior within Moleculer? Are there any plans to add native canary‑style traffic splitting to the versioning feature?