Does istio rate limiting work for websocket connections?

4/12/2019

Istio has rate limiting features in recent version. Does this also work when using websocket connections to the clients? See also here.

-- musicformellons
google-kubernetes-engine
istio
rate-limiting
socket.io
websocket

1 Answer

4/16/2019

Istio rate limits do apply to websockets, however its not necessarily useful. Because websockets can be very long lived, the resources used for each request can vary hugely. Imagine you system runs happily at 1000 RPS with websockets that last 1 seconds but then requests increase to 1 minute in length - you go from 1000 concurrent requests to 60,000 concurrent requests at the same request rate.

-- David
Source: StackOverflow