Open nightguide opened 1 year ago
This scala will be easier to read than the lua https://github.com/twitter/finagle/blob/develop/finagle-core/src/main/scala/com/twitter/finagle/loadbalancer/PeakEwma.scala
@OlgaMaciaszek does this belong in spring-cloud-gateway?
Describe the solution you'd like It would be great if Spring-cloud-gateway for Kubernetes supported the Peak EWMA (peak exponentially-weighted moving average) load balancing mechanism.
You can read about what Peak EWMA is here:
It would be great if spring-cloud-gateway for Kubernetes could track the response time of endpoints in Kubernetes services and could balance based on EWMA. This is very useful when the application is under high load.
Describe alternatives you've considered
load balance Ewma on Kubernetes Ingress Controller
Another alternative is to use the service mesh for example Linkerd. But the mesh service always adds resource overhead and complicates the management between service networking. From the functionality of the service mesh, we only need the EWMA balancing mechanism.
Use different API Gateway for example [Apache APISIX]https://apisix.apache.org/docs/ingress-controller/concepts/apisix_upstream/l)
Additional context