title: ActionCable slow in production
body: <p>I am building a basic chat application for customer support of a website. It works flawlessly in development on local server. I pushed the changes to the server but it is behaving extremely slow. The application in itself works fast but the pub/sub to acioncable channels is slow. </p>
  
  <p>I am using nginx, puma for webserver and redis for pub/sub. I have four channels and two of them have heavy client side (coffee.erb file).<strong><em>How can I reduce time for actioncable channels? How can I debug what is causing the lag?</em></strong>
   <a href="https://i.stack.imgur.com/T7835.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T7835.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/9WBoM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9WBoM.png" alt="enter image description here"></a></p>
  
  <p>Thanking you in advance. If any code is required please mention in the comments of the question and I would add it to the question. </p>