Scaling Rails web sockets in Kubernetes with AnyCable
24-Jun-2022 1418
One of the things I love the most about Rails is how easy it makes implementing many features with very little setup from my part. One example is ActionCable for web sockets. Before ActionCable, whenever I needed to build realtime features I had to resort to separate tools or perhaps a dedicated hosted service if scale was an issue (for example we have been using Sendbird for years at Brella).ActionCable made everything so much easier in terms of feature implementation, but with a catch: it really doesn't perform all that well with many concurrent clients. As soon as you start having a few thousands of clients active at the same time, latency goes beyond what is considered "realtime".
Scaling Rails web sockets in Kubernetes with AnyCable #ruby #rubydeveloper #rubyonrails #Scaling #Rails #sockets #Kubernetes #AnyCable #kubernetes #web https://rubyonrails.ba/link/scaling-rails-web-sockets-in-kubernetes-with-anycable